This is a discussion on "[SOLVED] Problems with CSS 'Header Image' - How to make fluid??" within the Web Page Design section. This forum, and the thread "[SOLVED] Problems with CSS 'Header Image' - How to make fluid?? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Problems with CSS 'Header Image' - How to make fluid??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Problems with CSS 'Header Image' - How to make fluid??
Hi all ,
Here we go with my first post .... I have a site i am constructing in XHTML & CSS ...... i have a header and footer image which i want to incorporate into the page , but having problems making them expand etc with the browser window ...the image is 1000px wide as i am designing for users with 1024x768 and above!! Of course this looks fine at 1024x768 it fits perfectly , but of course when i take it back up to 1280x1024 (the res i design in) there is a large gap to the right hand side of my header ...... is there anyway to make the header / footer expand with the window.........help greatly appreciated !!! PS . I have seen people use a small spacer image before ?!?! how is this done?? |
|
|
|
|||
|
Re: Problems with CSS 'Header Image' - How to make fluid??
yes sorry here is a temp link .....
Last edited by slimboyfatz32; Jan 23rd, 2008 at 19:07. |
|
||||
|
Re: Problems with CSS 'Header Image' - How to make fluid??
For the most part, expanding an image across a range of horizontal resolutions will not turn out well. You'll either stretch the image (if height is constant) or increase the vertical size, making your page heavy and the image HUGE at higher resolutions. Also, allowing html/css to expand or shrink an image will make it look like crap, in most cases.
That said, it isn't so hard to do. Here, http://www.bigbaer.com/css_tutorials...l.tutorial.htm I have two possible solutions. Actually, I've been working on two pages today using both solutions, so I can give examples. First, set the image as a background and allow the page to trim it (overflow:hidden http://collierhills.net/index.php Second, create the image for 800px width and use the same background color in the image and the section (or a transparent background for the image). Then just let the whitespace flow, either centered or on the right or left. This rough draft is not even in "first draft" shape; something I'm doing for a friend, but it's at the same url as the one above: http://collierhills.net/greystone/index.php If you want to, you can float a second image to the right and generate a fixed height connecting bar between the two. I don't have one to show you right now, but the concept is easy enough to understand if you've ever done, say, a box with rounded corners. |
|
|||
|
Re: Problems with CSS 'Header Image' - How to make fluid??
Yeah.. I would do the same way you do
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: Problems with CSS 'Header Image' - How to make fluid??
thanks for the reply , you have given me some great ideas to work off ...when the header image is a picture image it just makes things that little bit trickier , than say using solid colour ... but i think i've cracked it now !!!
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make image fixed within DIV | swaino | Web Page Design | 4 | Jun 6th, 2008 20:20 |
| [SOLVED] header location | AdRock | PHP Forum | 10 | Oct 12th, 2007 23:05 |
| help on image header | shotokan99 | PHP Forum | 0 | Jul 2nd, 2007 06:08 |
| Padding on #header background image.. IE6/Firefox. | rooraaahcrumbs | Web Page Design | 1 | Apr 26th, 2006 20:49 |
| How to make a moving #top image? | qosmioamit | Web Page Design | 6 | Jan 17th, 2006 18:52 |