The Usuall IE6 Makes The Site Look Crappy

07-02-07, 02:19 PM
|
 |
Newbie Coder
|
|
Join Date: Nov 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
The Usuall IE6 Makes The Site Look Crappy
I am working on a website for one of my customers, well everything has been going good until i used it in ie6, all the fonts are off and etc. How can i fix this and better question how can i improve building a website that works on all browsers. Also should i make a separate css file for ie6?
Heres the Website: http://comwareservices.com/anania
HTML:
CSS:
css Code:
/* CSS Document */ /* Layout */ body { margin: 0px; } #Container { height: 600px; width: 800px; margin: 0px; } #Header { background-image: url(../images/layout/Header.gif); height: 130px; width: 800px; } #Left-Bar-Holder { float: left; width: 219px; } #Left-Bar { background-image: url(../images/layout/Left_Bar.gif); width: 219px; float: left; } #Left-Bar-White-Box { background-image: url(../images/layout/Left-Bar-White-Box.gif); height: 173px; width: 206px; text-align: center; float: left; } #Left-Bar-Content { margin: 0px; padding-right: 11px; padding-left: 11px; padding-top: 15px; } #Left-Bar-Bottom { float: left; background-image: url(../images/layout/Left-Bar-Bottom.gif); height: 26px; width: 219px; } #Main-Body { float: left; width: 575px; } #Main-Body-Content { } #Footer { } /* Navigation */ #nav { font: bold medium Trebuchet MS; margin: 0; padding: 85px 0 0 150px; list-style:none; } #nav li{ display: inline; } #nav li a{ float: left; color: #4E4E4E; padding: 8px 10px; text-decoration: none; font-size: medium; } #nav li a:visited{ color: #4E4E4E; font-size: medium; } #nav li a:hover{ color: #FFFFFF; font-size: medium; } /* Text */ .Left-Bar-Header{ font-family: Georgia, "Times New Roman", Times, serif; font-size: 16px; font-style: italic; text-align: center; } .Left-Bar-Store{ font-family: Georgia, "Times New Roman", Times, serif; font-size: 16px; } .Left-Bar-Hours{ font-family: Georgia, Times New Roman, Times, serif; font-size: 12px; }
Last edited by Nico; 07-02-07 at 02:45 PM.
|

07-02-07, 03:08 PM
|
 |
Wannabe Coder
|
|
Join Date: May 2007
Location: Stockton, England
Posts: 223
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Well i'm using IE7 and all the text looks out of place.
|

07-02-07, 04:49 PM
|
 |
Newbie Coder
|
|
Join Date: Nov 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Well then it must be both, because everything looks fine in firefox and safari.
|

07-02-07, 09:58 PM
|
 |
Community VIP
|
|
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by TheScreenSaver24
how can i improve building a website that works on all browsers.
|
Validate your pages and CSS (you have some errors in your HTML - reusing IDs.) Also, read up about some of the cross-browser issues.
Quote:
Originally Posted by TheScreenSaver24
Also should i make a separate css file for ie6?
|
Yes, enclose the stylesheets in a conditional comment.
|

07-02-07, 10:09 PM
|
 |
Community Liaison
|
|
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
|
|
Here try it this way, I think you will like the results.
CSS:
css Code:
body { margin: 0px; } #Header { background-image: url(images/Header.gif); height: 130px; width: 800px; } #Left-Bar-Holder { text-align:center; } #Left-Bar { width: 212px; background-image: url([url]http://comwareservices.com/anania/images/layout/Left_Bar.gif);[/url] } .Left-Bar-White-Box { background-image: url([url]http://comwareservices.com/anania/images/layout/Left-Bar-White-Box.gif);[/url] background-repeat: no-repeat; } .Left-Bar-Content { font-family: Georgia, "Times New Roman", Times, serif; font-size: 11px; text-align:center; } #Left-Bar-Bottom { background-image: url([url]http://comwareservices.com/anania/images/layout/Left-Bar-Bottom.gif);[/url] height: 26px; } #Main-Body { background:#ffffff; width: 575px; } #Main-Body-Content { padding-left:10px; } #Footer { } /* Navigation */ #nav { font: bold medium Trebuchet MS; margin: 0; padding: 69px 0 0 140px; list-style:none; } #nav li{ display: inline; } #nav li a{ color: #4E4E4E; padding: 8px 10px; text-decoration: none; font-size: medium; } #nav li a:visited{ color: #4E4E4E; font-size: medium; } #nav li a:hover{ color: #d0d0d0; font-size: medium; } /* Text */ .Left-Bar-Header{ font-family: Georgia, "Times New Roman", Times, serif; font-size: 16px; font-style: italic; } .Left-Bar-Store{ font-family: Georgia, "Times New Roman", Times, serif; font-size: 14px; padding-top:10px; } .Left-Bar-Hours{ height:100px;padding-top:8px; }
__________________
Jerry Broughton
Last edited by job0107; 07-02-07 at 10:23 PM.
|

07-03-07, 01:17 AM
|
 |
Newbie Coder
|
|
Join Date: Nov 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I will probably use it but why tables instead of div?
|

07-03-07, 05:50 AM
|
 |
Community Liaison
|
|
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
|
|
I still used your <div>s, some <span>s and a little CSS to manipulate the objects in the table. But in your case, using a table to organize the objects greatly simplified things. Also you can add <td>s to the right for more objects.
If you study the code you will see that the way I have it laid out I can do anything to the objects in the table without disturbing the layout. And all the objects are contained within <div>s, giving them total independence.
If you will notice I have put some of the text in side <span>s within it's <div> which adds another dimension to the possibilities of manipulation.
This way I have total control over what the objects can do.
__________________
Jerry Broughton
Last edited by job0107; 07-03-07 at 06:02 AM.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|