Padding/Margin unknown source

This is a discussion on "Padding/Margin unknown source" within the Web Page Design section. This forum, and the thread "Padding/Margin unknown source 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, 09:16
Junior Member
Join Date: May 2008
Location: Ireland
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Padding/Margin unknown source

Hi all,
I came across a simple layout tutorial @ http://www.vanseodesign.com/blog/css...mn-css-layout/ which I found very useful and started to play with the code. I'm have altered it to whats below and have a margin/padding issue between the content-wrap and main divs left side in IE7 and not in FF3. Would really like to know whats going on and a W3C valid fix if there is! If anyone has other browsers and it's showing differently I'd like to know as well.

Thanks
Denis

Code: Select all
<html>
<head>
<title>2 Column CSS Layout</title>

<style type="text/css">

div {
    text-align:center;
}

div#wrap {
    border: 1px solid purple;
    width: 800px;
    margin: 0 auto;
    padding: 5px;
    text-align: left;
}

div#header {
    border: 1px solid red;
    width: 100%;
    height: 300px;  
}

div#content-wrap {
    border: 1px solid black;
    width: 800px;
}

div#main {
    border: 1px solid blue;
    width: 60%;
    min-height: 500px;
    _height: 500px;
    margin: 5px;
}

div#sidebar {
    float: right;
    border: 1px solid green;
    width: 35%;
    height: 350px;
    margin: 5px;
}

div#footer {
    border: 1px solid red;
    width: 100%;
    height: 30px;
}

</style>
</head>
<body>

    <div id="wrap">
        <div id="header">
        </div>
        <div id="content-wrap">
            <div id="sidebar"></div>
            <div id="main"></div>
        </div>
        <div id="footer">
        </div>
    </div>

</body>
</html>
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

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
Padding/Margin issues with IE 5.5 and 8.0 ivanderhoff Web Page Design 5 Jul 10th, 2008 20:18
[SOLVED] margin and padding in different browsers danny322 Web Page Design 12 Jan 30th, 2008 13:12
[SOLVED] Padding and Margin mcdanielnc89 Web Page Design 5 Dec 24th, 2007 23:58
Strange Padding/Margin MaxCurrent Web Page Design 2 Jul 24th, 2007 10:36
Align prob (padding? margin?) m1k3 Web Page Design 5 Jun 13th, 2006 16:02


All times are GMT. The time now is 10:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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