Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

pretty CSS header and footer

Featured Replies

I've made this design in photoshop and now it comes to code it and I'm not entirely sure where to start as I'm still a beginner.

 

A pointer to any tuts including similar layouts would be great.

 

The header image of the building is seperate to the clouds. Do I need to have them on seperate layers to center the whole thing as the clouds image is wide (1420px)so it fills most monitors. I'd rather clouds and pub stay together?

 

And the footer: should I use a gradient for the blue as a background image then split the rest into two halfs, top and bottom so the text in the 3 columns can push the whole footer down the page, I'm pretty stumped on this?

 

I'm o.k. with the navigation matrix as I've read up on this and implemented it into the current site (this is a re-design and my will be my second coded site).

 

cheers party people

t.c.

post-16950-126796887877_thumb.jpg

To center an image <img src="..."> or div or any other element, use a width and margin: 0 auto; where the auto margins will be equal and therefore center the element. If it's inside a header div:

#header { width: ??px; margin: 0 auto; }

 

<div id="header">
<img src="image.jpg" alt="description"/>
</div>

 

For a background-image in the body (or inside a div) use

body { background-image: url(image.jpg); background-position: top center; }

 

or the short code

body { background: url(image.jpg) top center; }

 

then the images and background will marry up.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.