Reply
Difficulty to find same Layout in different browsers.
Old 07-01-2009, 05:30 AM Difficulty to find same Layout in different browsers.
Experienced Talker

Posts: 48
Name: Qasim Ali
Trades: 0
Hello Guys!

I have posted same thread in other different Web Forums too.

I am making a web page and using <DIV> in CSS. But when I use it in Internet Explore, I find maximum results which I want actually. But when I write same coding in Google Chrome, Firefox and Netscape then It give me pretty different Layout. Can you tell me how can I find same results in all browsers. Here is the coding that I wrote.

Coding starts here:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<style type="text/css">
#main{
width:1024px;
background-color:red;
height:150px;
}
#nav{
width:1024px;
background-color:gray;
height:30px;
margin-bottom:15px;
}
#body{
width:1024px;
background-color:silver;
height:300px;
}
#colone{
width:331.33px;
background-color:white;
height:330px;
display:inline;
}
#coltwo{
width:331.33px;
background-color:white;
height:330px;
margin-left:15px;
display:inline;
}
#colthree{
width:331.33px;
background-color:white;
height:330px;
margin-left:15px;
display:inline;
}
#footer{
width:1024px;
background-color:white;
height:30px;
margin-top:15px;
}
</style>
</head>
<body bgcolor="silver" topmargin="0">
<table summary="" border="0" width="1024" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>

<div id="main"></div>
<div id="nav"></div>
<div id="body">
<div id="colone"> This Col 1. This Col 1.This Col 1.This Col 1.This Col 1.This Col 1.This Col 1.</div>
<div id="coltwo"> This is Col 2This is Col 2This is Col 2This is Col 2This is Col 2This is Col 2</div>
<div id="colthree">This is Col 3This is Col 3This is Col 3This is Col 3This is Col 3This is Col 3</div>
</div>
<div id="footer"></div>

</td>
</tr>
</table>
</body>
</html>

Coding finishes here:


You can see the results in Pictures that I have uploaded on Rapidshare:

Here is the Layout of IE:
http://rapidshare.com/files/250592606/IE7.JPG.html

Here is the Layout of Google Chrome:
http://rapidshare.com/files/25059308...hrome.JPG.html

Here is the Layout of Firefox:
http://rapidshare.com/files/250593391/Firefox.JPG.html

So you can see the Layouts too. I request all of you to help me fix this problem. I will be grateful to you for this kind act.

Regards,

Qasim Ali
http://qaswallpapers.sitesled.com
Qasim Ali is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-01-2009, 11:34 AM Re: Difficulty to find same Layout in different browsers.
LadynRed's Avatar
Super Moderator

Posts: 8,821
Location: Tennessee
Trades: 0
Your first step - stop using IE to test your layout because it is the LEAST standards compliant browser out there (except for 8, that's far better). Make your site work in Firefox first, then do what's needed to make it work right in IE.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-01-2009, 01:19 PM Re: Difficulty to find same Layout in different browsers.
GeekSpecialties's Avatar
Super Talker

Posts: 113
Name: Leonard
Location: Minnesota, USA
Trades: 0
Yes start with a standards compliant browser. Test as you build, then you'll know when something goes wrong and what caused it.
While your at it get rid of the table and make it a wrapper div. Round your numbers to whole pixel units. I don't think any browser will support that anyway, they will round to the nearest pixel.
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 07-01-2009, 04:57 PM Re: Difficulty to find same Layout in different browsers.
Average Talker

Posts: 15
Name: Malory Eluan
Trades: 0
To make your test I may suggest you to install the "Web Developer Plugin" on Firefox, that allows you changing the CSS and XHTML directly in firefox to make all your tests.
__________________
Chalets à louer | Candide
st-irenee is offline
Reply With Quote
View Public Profile
 
Old 07-02-2009, 07:10 AM Re: Difficulty to find same Layout in different browsers.
Skilled Talker

Posts: 50
Trades: 0
yes it is true..Web Developer Plugin can help you a lot.after installing it restart firefox then after you are able to update css directly in firefox
__________________
Trampoline | Trampoline | Trampoline
totallyace is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Difficulty to find same Layout in different browsers.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13016 seconds with 13 queries