www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 07-24-2006, 06:47 AM
    supersteve3d supersteve3d is offline
    Registered User
     
    Join Date: Dec 2005
    Posts: 62
    box model problems.

    Hi all,

    Just when I thought I got it figured out..

    Please take a minute to look at my site.
    www.stevelim.com

    The borders are being predictable in IE 6 but not firefox.

    I have 3 columns..
    B=border , P=padding, W=width

    <B10><P10><W130><P10><B10> <B10><P10><W500><P10><B10> <B10><P10><W150><P10><B10>

    Total width for the wrapper is 900px by my calculations. Firefox displays it all weird. IE is ok. Its usually the other way around.
    Reply With Quote
      #2  
    Old 07-24-2006, 07:58 AM
    Centauri's Avatar
    Centauri Centauri is offline
    Registered User
     
    Join Date: Mar 2006
    Location: Newcastle NSW Australia
    Posts: 4,033
    Quite possibly a problem with margins. In your css there is the line:

    body { background: #555 url(back.jpg) no-repeat; font:0.7em Tahoma, Arial, Verdana, sans-serif; color:#444; marin:0; padding: 0;}

    Spot the spelling mistake?

    Cheers
    Graeme
    Reply With Quote
      #3  
    Old 07-24-2006, 08:44 AM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,668
    You also have something strange going on with the LI.

    Here is one of those examples of 'even though is validates as correct, it still displays wrong on Firefox therefore, there is an error in here somewhere'... (note the overlapping text in image, attached
    Attached Images
    File Type: gif ScreenHunter_1.gif (4.2 KB, 34 views)
    Reply With Quote
      #4  
    Old 07-24-2006, 09:50 AM
    Centauri's Avatar
    Centauri Centauri is offline
    Registered User
     
    Join Date: Mar 2006
    Location: Newcastle NSW Australia
    Posts: 4,033
    Yes, the text on that page is very small, prompting the use of the "increase text size" button .... which then promptly breaks the layout as WebJoel's pic shows.
    Reply With Quote
      #5  
    Old 07-25-2006, 01:01 AM
    supersteve3d supersteve3d is offline
    Registered User
     
    Join Date: Dec 2005
    Posts: 62
    Hi all,

    Thanks for the pointers. I have fixed the errors mentioned. However, as I expected, they are not related to the problem I'm having.

    This seems to have to do with the very large margins and how firefox and IE translate them. This works fine when I remove any borders (just width + padding).

    http://www.stevelim.com

    vs. with borders it breaks.

    http://www.stevelim.com/index_border.html
    Reply With Quote
      #6  
    Old 07-25-2006, 01:13 AM
    supersteve3d supersteve3d is offline
    Registered User
     
    Join Date: Dec 2005
    Posts: 62
    Interesting that just adding borders to the center column breaks it.

    from..

    Code:
    #center	{	background-color:#ddd;	float: left; width: 560px;	margin-left: 150px; padding: 10px;}
    to..

    Code:
    #center	{	background-color:#ddd;	float: left; width: 540px;	margin-left: 150px; padding: 10px; border-left: 10px; border-right:10px; }
    and boom. Notice that I reduced the width to compensate for the new borders on either side. This works for padding but somehow blows up for borders?
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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
    Forum Jump


    All times are GMT -5. The time now is 02:56 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.