Web Design Forums

HTML and CSS Help

Having problems with these web design scripting? Ask here.

Getting my CSS layout to work in all browsers



Site of the Month Nominations
ENTER YOUR SITE NOW!

Reply
 
LinkBack Thread Tools
Old June 14 '09, 07:39 PM (#1)
GosuStyle is offline
New Member!
 
GosuStyle's Avatar
 
Join Date: June 2009
Posts: 2
GosuStyle is an unknown quantity at this point
Getting my CSS layout to work in all browsers

Hello,
I am fairly new to CSS and created a layout with a fixed navigation and liquid header, footer and content divisions. It looks great in Google Chrome but when I test it in Firefox or IE7 it is rendered differently.

Here is my layout:
http://www.bigoakexxon.com/example.htm

As you can see, when opened with Firefox the problem is only with the margins. With IE7 the problem is with the min-height property and the margins it looks like. I am aware that IE does not like "min-height" and instead uses height as min-height.
I could probably make the layout look nice in any of these browsers but not all of them with the same code.
Any help or advice on my coding would be greatly appreciated!

Thanks so much
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 14 '09, 10:43 PM (#2)
filburt1 is offline
bored
 
filburt1's Avatar
 
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
filburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to all
IE7 supports min-height, but IE6 does not.

Having said that, you're missing a DOCTYPE so IE might be in quirks mode. I would make your page validate first (http://validator.w3.org/) before trying anything else so IE will render in standards mode.

Last edited by filburt1; June 16 '09 at 10:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 15 '09, 09:11 AM (#3)
Dorky is offline
Freelance
 
Dorky's Avatar
 
Join Date: June 2009
Location: Destin Florida
Posts: 905
Dorky will become famous soon enough
also you may find it helpful to use a meta tag to tell IE which standards mode to render in.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 15 '09, 04:18 PM (#4)
GosuStyle is offline
New Member!
 
GosuStyle's Avatar
 
Join Date: June 2009
Posts: 2
GosuStyle is an unknown quantity at this point
What does validating my site do?
What is the purpose of the DOCTYPE command?
These things are new to me. I'm not following.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 15 '09, 07:23 PM (#5)
imagn is offline
WDF Regular
 
imagn's Avatar
 
Join Date: July 2007
Location: Los Angeles
Posts: 156
imagn will become famous soon enough
DOCTYPE declares what kind of HTML is being used. i.e XHTML 1.1 Strict, HTML 4.0 Transitional, etc.

Here's a quick reference guide:
http://htmlhelp.com/tools/validator/doctype.html

To get around the min-height in IE6 you would add this to your CSS

* html #html-element-name {
height: 300px; // whatever your value for min-height is
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » HTML and CSS Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Wallpaper Layout - Suggestions about how to do this aburningflame HTML and CSS Help 5 February 20 '09 12:33 PM
CSS for site layout lightning1 HTML and CSS Help 4 May 24 '07 02:18 PM
problem in html and css layout doraima29 HTML and CSS Help 5 May 3 '07 05:09 PM
css does not work in ie AndeH HTML and CSS Help 6 March 30 '07 09:21 AM
CSS on all browsers and platforms DesignBox HTML and CSS Help 2 January 13 '06 03:28 AM

 
User Infomation
Your Avatar

Site Of The Month

Ticket Cake
Ticket Cake

Ticket Cake is a drupal based event ticketing platform. It features that ability to browse events and share them.

Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:32 AM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163