It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

Background Colour Problems

Background Colour Problems

Postby rse on Wed Aug 15, 2007 3:18 pm

Hi,

I am currently designing a bit of a blog site from scratch and I've created a design which looks fine in IE6, however in Firefox 2 the DIV called "content" which has lots of nested DIVs in it with the content is not stretching with the content inside it.

Please have a look at http://www.awdigital.com/adam/ in both browsers or just Firefox so you can see the problem. The pinky coloured background behind the main content should reach right to the bottom where the footer is.

Any ideas on how to fix this?

I've tried moving stuff around and all sorts but I just can't figure this one out.

Many thanks

Adam
Adam Williams
PHP Web Developer

Personal: http://30things.net
Blog: http://www.root-servers.co.uk
User avatar
rse
100+ Club
 
Posts: 141
Joined: Sun Oct 10, 2004 8:15 pm
Location: Leeds, UK

Postby knifeinback on Thu Aug 16, 2007 2:58 am

Simple solution:
Design one main site,
and then, for browsers that have problems with it, make a browser spcific ones.

Then use JavaScript to decect browsers and re-direct.
User avatar
knifeinback
100+ Club
 
Posts: 136
Joined: Fri Jul 27, 2007 10:41 am
Location: 4170: Brisbane

Postby rse on Thu Aug 16, 2007 8:07 am

That is certainly an option, however I'm not convinced that it isn't just a mistake I've made with the coding because I'm sure at one stage during development it looked fine in both browsers.

Would using the Z-INDEX attribute in the DIV tags make a difference, because it's almost like whilst the DIV's are nested inside the main content DIV, they are floating above it so the content DIV isn't stretching to accommodate them?

Thanks for your help so far.

Ad
Adam Williams
PHP Web Developer

Personal: http://30things.net
Blog: http://www.root-servers.co.uk
User avatar
rse
100+ Club
 
Posts: 141
Joined: Sun Oct 10, 2004 8:15 pm
Location: Leeds, UK

Postby knifeinback on Thu Aug 16, 2007 8:16 am

you should always have a z-index for a div.
Unless it's a generic <div> tag.
User avatar
knifeinback
100+ Club
 
Posts: 136
Joined: Fri Jul 27, 2007 10:41 am
Location: 4170: Brisbane

Postby rse on Thu Aug 16, 2007 12:05 pm

ive added z-index:1; to all of the div tags, but it makes no difference.

Any other ideas?

Cheers
Adam Williams
PHP Web Developer

Personal: http://30things.net
Blog: http://www.root-servers.co.uk
User avatar
rse
100+ Club
 
Posts: 141
Joined: Sun Oct 10, 2004 8:15 pm
Location: Leeds, UK

Postby rse on Thu Aug 16, 2007 12:06 pm

By the way I changed the url of the site to http://www.awdigital.com. Cheers
Adam Williams
PHP Web Developer

Personal: http://30things.net
Blog: http://www.root-servers.co.uk
User avatar
rse
100+ Club
 
Posts: 141
Joined: Sun Oct 10, 2004 8:15 pm
Location: Leeds, UK


Who is online

Users browsing this forum: No registered users and 0 guests