[SOLVED] Problems with CSS 'Header Image' - How to make fluid??

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 23rd, 2008, 14:10
Junior Member
Join Date: Jan 2008
Location: UK
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
[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??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 23rd, 2008, 14:18
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with CSS 'Header Image' - How to make fluid??

What does the image look like? A link to your site would be nice, etc......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 23rd, 2008, 14:23
Junior Member
Join Date: Jan 2008
Location: UK
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 27th, 2008, 19:36
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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. Check this at various window sizes:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 28th, 2008, 04:56
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 28th, 2008, 09:09
Junior Member
Join Date: Jan 2008
Location: UK
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
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 !!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 18:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42