Jump to content

CSS is screwing up my images!?!?!


suess0r

Recommended Posts

Hi,

if you go to www.myclub411.com/custom.php you'll notice that for some reason my CSS is screwing up my images with either a padding of some sort, or something I just can't figure out. it's extremely aggrivating and could someone please have a looksie and help me out!?!? ;(

Here's my CSS file...

[quote]
/* standard elements */
* {
  margin: 0;
  padding: 0;
}
a {
color: #042674;
text-decoration: none;
a:hover {color: #9A6;}
body {
  background: #655A46 url(images/bluebg.jpg) repeat-y center top;
  color: #333;
  font: normal 62.5% "Lucida Sans Unicode",sans-serif;
}

input {
  color: #555;
  font: normal 1.1em "Lucida Sans Unicode",sans-serif;
}
p,cite,code,ul {
  font-size: 1.2em;
  padding-bottom: 1.2em;
}
ul {margin-left: 1.2em;}
h1 {font-size: 1.4em;}
blockquote {
  background: #FFF;
  border-bottom: 1px dotted #EEE;
  border-top: 1px solid #EEE;
  color: #333;
  display: block;
  font-size: 0.9em;
  margin-bottom: 1.2em;
  padding: 6px 12px;
}
blockquote p {padding: 3px 0;}
h1,h2,h3 {color: #654;}

/* misc */
.clearer {clear: both;}

/* structure */
.container {
  background: url(images/bgcontainer.gif) repeat-y;
  margin: 0 auto;
  width: 702px;
}

/* top */
.top {
  background: #567300;
  font: normal 2.4em Verdana,sans-serif;
  height: 60px;
  margin: 0 auto;
  width: 630px;
}
.top a {
  color: #FFF;
  display: block;
  line-height: 60px;
  text-decoration: none;
  width: 100%;
}
.top span {padding-left: 24px;}
.top a:hover {
  background: #688B00;
  color: #FFF;
}

/* header */
.header {
  background: url(images/headersmaller.gif) no-repeat;
  height: 107px;
  margin: 0 auto;
  width: 630px;
}

/* item */
.item {clear: both;}
.item .date {
  background: url(images/bluebgdate.gif) no-repeat;
  color: #ffffff;
  float: left;
  height: 40px;
  text-align: center;
  width: 36px;
}
.item .date div {padding-top: 4px;}
.item .date span {font: normal 1.6em serif;}
.item .content {
  float: left;
  width: 420px;
}
.item h1 {
  background: #0a52db;
  color: #FFF;
  line-height: 40px;
  padding-left: 16px;
}
.item .body {padding: 12px 18px;}

/* main */
.main {float: left;}

/* navigation */
.navigation {
  float: left;
  margin-left: 1px;
  width: 208px;
}
.navigation h1 {
  background: #0a52db;
  color: #FFF;
  font-size: 1.3em;
  line-height: 40px;
  padding-left: 12px;
}
.navigation ul {margin: 0; padding: 0;}
.navigation li {
  border-bottom: 1px dotted #D5E8AD;
  list-style: none;
}
.navigation li a {
  background: #E8F6BF url(images/bluebgnavigation.jpg) repeat-x; 
  color: #553;
  display: block;
  padding: 8px 4px 8px 12px;
  text-decoration: none;
}
.navigation li a:hover {
  background: #F0FFC6;
  color: #553;
}

/* footer */
.footer {
  background: url(images/bluebgfooter.jpg) repeat-x;
  color: #FFF;
  font-size: 1.1em;
  line-height: 40px;
  margin: 0 auto;
  text-align: center;
  width: 626px;
}
.footer a {color: #FFF;}
.footer a:hover {color: #FAFCB0;}
[/quote]
Link to comment
Share on other sites

As Jesirose noted in the mis-placed double post, [b]by default[/b], tables have a cellspacing of 1px, and a  cellpadding of 1px ... it's not your CSS, it the way you have coded the tables. Try fixing the errors, and recoding.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.