suess0r Posted January 19, 2007 Share Posted January 19, 2007 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] Quote Link to comment https://forums.phpfreaks.com/topic/34929-css-is-screwing-up-my-images/ Share on other sites More sharing options...
ToonMariner Posted January 19, 2007 Share Posted January 19, 2007 which images are getting the extra white space? is it space at the top and bootom or left and right? What should it look like? Quote Link to comment https://forums.phpfreaks.com/topic/34929-css-is-screwing-up-my-images/#findComment-164708 Share on other sites More sharing options...
suess0r Posted January 19, 2007 Author Share Posted January 19, 2007 The space is on the top and bottom... you can view it at: www.myclub411.com/custom.php and you'll see the images all f'd up. Thanks so much! Quote Link to comment https://forums.phpfreaks.com/topic/34929-css-is-screwing-up-my-images/#findComment-164723 Share on other sites More sharing options...
AndyB Posted January 19, 2007 Share Posted January 19, 2007 http://validator.w3.org/check?uri=http%3A%2F%2F67.78.171.146%2Fcustom.phpThere are 50 validation errors for that page. Maybe if you fix those, it'll look fine. Quote Link to comment https://forums.phpfreaks.com/topic/34929-css-is-screwing-up-my-images/#findComment-164732 Share on other sites More sharing options...
suess0r Posted January 19, 2007 Author Share Posted January 19, 2007 But where on the CSS would there add the padding or whatever on the top and bottom to the images? Quote Link to comment https://forums.phpfreaks.com/topic/34929-css-is-screwing-up-my-images/#findComment-164735 Share on other sites More sharing options...
AndyB Posted January 20, 2007 Share Posted January 20, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/34929-css-is-screwing-up-my-images/#findComment-164768 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.