Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Mozilla displays code not correctly, IE does

This is a discussion on "Mozilla displays code not correctly, IE does" within the Web Page Design section. This forum, and the thread "Mozilla displays code not correctly, IE does are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 14th, 2008, 15:54
New Member
Join Date: Jun 2008
Location: Northern Ireland
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Mozilla displays code not correctly, IE does

Hi all,
I am stuck here with a problem with my columns. IE 6.0 displays it the way I want it (for a change), Firefox 2.0.0.15 doesn't!

Here is the CSS (CSS and HTML are W3 valid):
Code: Select all
 body    {
font-size: 90%;    }

#wrapper {
width: 55em;
margin: 0 auto;
padding: 1.25em 0 0 0.63em; 
border: black 0.1em solid;     }

#content1    {
width: 54.4em;
height: auto;
margin: 0 0 0.63em 0;
background: red;
border-bottom: 0.1em #d8d8d8 solid;    
font-family: Helvetica, Verdana, Arial, sans-serif;
font-size: 1em; }


#col1    {
float: left;
width: 17.5em;    
padding-right: 0.53em;
border-right: 0.1em #d8d8d8 solid;    
padding-top: 0.1em;
padding-bottom: 0.1em;    }

#col2    {
float: left;
width: 17.3em;
padding-right: 0.43em;
padding-left: 0.5em;    
border-right: 0.1em #d8d8d8 solid;    
padding-top: 0.1em;
padding-bottom: 0.1em;    }

#col3    {
float: left;
width: 17.3em;
padding-right: 0.03em;
padding-left: 0.5em;    
padding-top: 0.1em;
padding-bottom: 0.1em;        }
And here is the HTML for it:
HTML: Select all
 <div id="wrapper">

        <div id="content1">

            <h1> Our Services</h1>

            <div id="col1">
                lksdjf jsdfj lsjdf lsjd l sdflkjdsf lksdjf slk sd lsdkjf flsdjf slf sdfl sfkjsdf sf
            </div>

            <div id="col2">
                lksdjf jsdfj lsjdf lsjd l sdflkjdsf lksdjf slk sd lsdkjf flsdjf slf sdfl sfkjsdf sf
            </div>

            <div id="col3">
                lksdjf jsdfj lsjdf lsjd l sdflkjdsf lksdjf slk sd lsdkjf flsdjf slf sdfl sfkjsdf sf
            </div>

        </div>
    </div>
Does anyone have a clue what I could be doing wrong???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jul 14th, 2008, 20:32
CloudedVision's Avatar
Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,342
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Re: Mozilla displays code not correctly, IE does

What exactly do you want it to display like?
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 15th, 2008, 09:24
New Member
Join Date: Jun 2008
Location: Northern Ireland
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Mozilla displays code not correctly, IE does

Oh dear, sorry, I forgot to describe the actual problem!

At the moment IE displays it as it should: the 3 columns are inside the (red) content area. However Firefox displays the columns below.

Has anybody advise why Firefox displays them OUTSIDE my definded "content" area?

I would be very very thankful for hint what I could try or any clues WHY this is actually happening.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 15th, 2008, 10:07
New Member
Join Date: Jun 2008
Location: Northern Ireland
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Mozilla displays code not correctly, IE does

I have got it!

The solution is to clear the last column with:

<br style="clear:both" />

Cheerio!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, firefox 2.0.0.15, ie 6.0, layout, xhtml 1.0

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp code in XHTML displays English, then switches to a different language mboston72 Classic ASP 4 Jan 21st, 2008 01:11
Displays wrong in Firefox JustinStudios Web Page Design 7 Jun 28th, 2007 20:56
code not workingin mozilla firefox svrajmane JavaScript Forum 0 Jun 1st, 2007 11:08
Displays wrongly in Firefox? spon Web Page Design 5 Feb 15th, 2007 18:19
script runs on IE but not correctly on Opera,Mozilla ranjan JavaScript Forum 1 Jun 20th, 2005 21:44


All times are GMT. The time now is 19:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8