This is a discussion on "Div problem in IE" within the Web Page Design section. This forum, and the thread "Div problem in IE are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Div problem in IE
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Div problem in IE
Hi guys,
First post so be gentle! Im trying to make my first css driven site, however I am having a few problems with a header div in IE. When I view my site in Firefox it behaves normally (acts like a header, stays the correct height etc), when I view the site in IE 6 it seems to act more like a container and expands below the rh-col div which is the main content. How can I stop this happening in IE, so it looks the same as Firefox. I have tried searching but it is a little difficult when you are not sure of the cause. Links to demo the problem http://helios.hud.ac.uk/n0255628/AWP...creenshots.php http://helios.hud.ac.uk/n0255628/AWP/register.php (I know the form labels disappear in IE on the register page, I don't know why but i'm working on it!) Thanks |
|
|
|
|||
|
Re: Div problem in IE
You should be using Id's instead of class's
and the css for your header could be this:
then maybe i can look at the rest, you should also go over your css properties for rh-kl (or what ever it is) as height: 1%; isn't exactly going to help. |
|
|||
|
Re: Div problem in IE
i didn't mean to say that it would make any diffence, but for SEO you should only use class's when nessary, and in this case, i believe it is not.
and try adding an extra 90px on your margin-top of rh-col |
|
|||
|
Re: Div problem in IE
Thanks for the response guys, I really appreciate it.
Sorry it has taken me a while to respond to your posts, been flat out with projects. I appear to have sorted the problem, although im not entirely sure what I did that fixed it, which is almost as frustrating as having the problem in the first place! I realise that I need to tighten up my coding, and next time I will be sure to post my markup and css alongside the problem. BTW Gaz the height 1% property was deliberate, Quote:
Cheers, S |
|
||||
|
Re: Div problem in IE
IE isn't any worse than any other browser, it's more a matter of which one you code for first. I started out coding for Gecko-based first, and IE was the evil empire. Now I code initially for IE, due to its prevelance, and now Mozilla etc. are the ones that seem all screwed up!
The min and max-width commands can save a lot of headaches. I've never encountered this "peek a boo" bug, probably I just got lucky in the methods I use. Like Roseanne Rosannadanna said, "It's always something". I have a small piece of text and all I want to do is change the color. It will take size and style commands, but it REFUSES to change color. Last edited by masonbarge; May 2nd, 2006 at 10:16. |
![]() |
| Tags |
| div, problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| First image problem and inline list problem | konnor5092 | Web Page Design | 8 | Dec 1st, 2007 09:08 |