Log In · Register

 
Where is this damned padding coming from??, Trying to use blurb module for overlay
william92371
post May 15 2009, 04:03 PM
Post #1


Newbie
*

Group: Member
Posts: 3
Joined: May 2009
Member No: 728,365



Hey all,

I'm pulling my hair out trying to justify the content in my "blurbs" module. I want no padding. Once I can get that fixed, I can upload my div w/ sliced images.

Here's the coding I'm using:

CODE
body {
background-color:#FFFFFF;
background-image:url('');
background-attachment:fixed;
background-position:Top Center;
overflow-x:hidden;
margin-top: 510px;}



div.head {
position: absolute;
top: 0;
left: 50%;
margin-left: -411px;
width: 798px;
height: 510px;}


div.blurbsModule h3 {display:none;}
div.blurbAboutMe h4 {display:none;}
div.blurbLikeToMeet {display:none;}
div.basicInfoModule {display:none;}



a {
text-decoration:none;
}
a:link, a:active, a:visited {
color:#000000;
text-decoration:none;
}
a:hover {
color:#000000;
text-decoration:underline;
}

div.footer a {
text-decoration:none;
}
div.footer a:link, a:active, a:visited {
color:#000000;
text-decoration:none;
}
div.footer a:hover {
color:#000000;
text-decoration:underline;
}

div#header, div#googlebar {background-color: #000000;}
#topnav {background-color: #000000;}
#topnav a {color: #FFFFFF;}
#topnav ul li, #topnav ul {border: none;}

#topnav ul li.dropDown:hover a,#topnav ul li.hover a,#topnav ul li.hover a:hover,

#topnav ul a:hover {background-color:#000000;color:#d7d0ac;}

#topnav li.dropDown:hover ul.subMenu a:hover,#topnav li.hover ul.subMenu a:hover{background-color:#000000; color:#E6E7B9;}

#topnav ul li a small,#topnav ul li a:hover small{color:#d7d0ac;}

#topnav ul.subMenu {border:0px #000000 solid;border-top:none;}

#topnav ul.subMenu li.divider{border-bottom:0px solid #000000;}

div.contentMid2 {padding:0px;}
div.contentMid1 {padding:0px;}
div.contentMid {padding:0px;}
div.content {padding:0px;}


I've removed comment tags to make it a little easier to read. The HTML is simply two divs in the blurbs section.

My test page

If you look, The picture I've put in is not left or top justified. I can't for the life of me figure out where this padding is coming from. I want to put in an 800px by 800px image to use as the main area, but obviously I can't do it now as there's white space from somewhere.



Thanks for the help!
Reason for edit: Please use [codebox] tags instead of [code] tags when posting longer codes. - Mike
 
 
Start new topic
Replies
Mickey
post May 15 2009, 04:13 PM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Try replacing the bottom of your CSS with this:

CODE
div.contentMid2 {padding:0px; border:0px;}
div.contentMid1 {padding:0px; border:0px;}
div.contentMid {padding:0px; border:0px;}
div.content {padding:0px; border:0px;}
div.content div.moduleBody * {padding:0px; border:0px;}

See if that does it.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: