Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

One pixel gap is driving me crazy! What am I doing wrong?

Featured Replies

Please disregard the entire mess this site is in (I just started designing it a few hours ago)... there is ONE thing that I cannot fix for the life of me, and it is this one-pixel gap between my header links and the rest of stuff. Please check it out:

 

See how when you roll over the links in the header, there's a teensy space in between? I want it to eventually imitate a tabbed look so that when you roll over it, it has a tab effect (and coloring will be adjusted)

 

but can someone please please please help me get rid of that gap?

 

here's my CSS so you don't even have to open another source file up:

 

/*

Global - affects entire page incl. header

*/

 

body {

background-image: url(images/background2.gif);

margin-top: 5px;

}

 

div.header {width: 950px; margin-left:auto; margin-right:auto;}

table.allcontent {width:950px; border:none; border-spacing:0px; margin-left:auto; margin-right:auto; padding:0px; margin-top: 0px;}

table.header {border:none; width: 950px; border:none; border-spacing:0px; padding:0px; margin-bottom: 0px; }

tr.header {background-color:#ffffff; margin: 0px; border-spacing:0px padding:0px;;}

tr.headerlinks {background-color:black;}

td.header {padding: 0px; margin: 0px; border-spacing:0px; padding:0px;}

td.leftcol {width: 200px; background-color: black; border-spacing:0px; margin: 0px; padding:0px; border-right: 2px #6CF solid;}

td.maincontent {background-color: #FFFFFF; width:750px;}

tr.footer {background-color: #cccccc;}

 

div.leftcolcontainer {font-family:Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; }

 

/*

Links - Link styles only

*/

a {font-family: Tahoma, Verdana, Geneva, sans-serif;}

 

div.helpsidelink {background-color: none; padding: 5px;}

div.helpsidelink:hover {background-color: #AA0000; padding: 5px;}

div.sidelink {background-color: none; padding: 5px;}

div.sidelink:hover {background-color: #000044; padding: 5px;}

a.helpsidelink {color: white; text-decoration: none; }

a.sidelink {color: white; text-decoration: none; font-size: 13px; }

/* Header Links */

div.headerlinks {text-align:right; padding:4px; font-family: Arial, Verdana, Geneva, sans-serif; font-size: 13px; font-weight: bold; margin-right: 10px;}

 

a.headerlink {color: white; background-color: none; padding: 4px; text-decoration: none; margin-left: 5px;}

a.headerlink:visited {color: white; background-color: none; text-decoration: none; margin-left: 5px;}

a.headerlink:active {color: white; background-color: none; text-decoration: none; margin-left: 5px;}

a.headerlink:hover {color: black; background-color: #ffffff; text-decoration: none; margin-left: 5px;}

 

a.headerlinkcurrent {color: black; background-color: white; padding: 4px; text-decoration: none; margin-left: 5px;}

a.headerlinkcurrent:visited {color: black; background-color: white; padding: 4px; text-decoration: none; margin-left: 5px;}

a.headerlinkcurrent:active {color: black; background-color: white; padding: 4px; text-decoration: none; margin-left: 5px;}

a.headerlinkcurrent:hover {color: black; background-color: white; padding: 4px; text-decoration: underline; margin-left: 5px;}

 

 

/*

Content - Affects content only

*/

div.disclaimer {font-family:Verdana, Geneva, sans-serif; font-size:10px; padding-top: 3px; padding-bottom: 3px;}

 

thanks x 10000000! this has been stressing me out for over an hour!

  • Author

That was... way simple.

 

Almost... too simple! :lol:

 

Could that possibly affect any other code in the future? Let me know. You're a lifesaver! :)

That was... way simple.

 

Almost... too simple! :lol:

 

Could that possibly affect any other code in the future? Let me know. You're a lifesaver! :)

 

If you're in doubt, just include a reset stylesheet. This is the core reset.css that I use.

Hope this helps.

reset.css

  • Author

If you're in doubt, just include a reset stylesheet. This is the core reset.css that I use.

Hope this helps.

 

How awesome. Thank you!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.