2 replies [Last post]
Tiago
Offline
Regular
Portugal
Last seen: 13 years 29 weeks ago
Portugal
Joined: 2006-12-10
Posts: 40
Points: 0

So, I'm starting to learn CSS and I would like to know how create headers like the one on this website.

#beg { width: 1280px; height: 140px; background: #ba8; margin-bottom: 12px; }

I am using this code but it will only work if the user has the same resolution that I do (1280*1024).

So I would like to know how to make it work with all screen resolutions..

Thanks in advance!

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 31 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Don't specify a width in

Don't specify a width in pixels; use % instead.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Tiago
Offline
Regular
Portugal
Last seen: 13 years 29 weeks ago
Portugal
Joined: 2006-12-10
Posts: 40
Points: 0

Eh shame on me, easy one!

Eh shame on me, easy one! Thanks for the tip Smile !