• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

Zero margin/padding


Skov    0

Hi, i'm currently trying to create a page, and there only one problem.

Currently my page looks like this:


And i want it to look like this:


And my code is this:

<title>Super layout - Sitename.tld</title>
<style type='text/css'>
body { height: 100%; margin: 0; padding: 0; background: #456283 url(imgs/tile.gif) repeat-x; font: 10pt Verdana, "Trebuchet MS", sans-serif; color: #222; }
#header { height: 100px; padding: 0; margin: 0 5% 0 5%; text-align: right; vertical-align: bottom; color: white; font-size: 50pt; font-weight: bold; }
#menu { padding: 5px 10px 5 10px; margin: 0 5% 0 5%; background-color: #fff; border-bottom: thin dashed #eee; text-align: right; }
#content { padding: 20px; margin: 0 5% 3% 5%; background-color: #fff; min-height: 65%; * height: 55%; }
#menu a { text-decoration: none; font-weight: bold; letter-spacing: 1px; }
#menu a:link, #menu a:visited, #menu a:active { color: #222; }
#menu a:hover { color: #6493D4; }
<div id="header"></div>
<div id="menu"><a href='#'>Link</a> · <a href='#'>Link</a> · <a href='#'>Link</a></div>
<div id="content">

Hope you can help, tried about everything so far.

Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Bamagrad03    0

Sometimes i would get a break/whitespace between an image tag and the next item...but if I put a hard <br> next to the upper item...it would get rid of the gap.

Share this post

Link to post
Share on other sites
  • 0
Skov    0

Nevermind, i'm dropping the idea for now. This can be closed/thrashed/whatever. :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.