View Full Version : Wordpress default theme code question
I've started messing with the default theme of wordpress. I figured most of it out but whatever I try I can't seem to get the space on top of page away, I've tried putting topmargin=0 and margintop: 0 px in the stylesheets and regular html code but it just doesn't want to go away. Does anyone know how to do this?
example: www.pornomagnet.com
Thanx
Simon
2006-05-26, 02:51 PM
I think it's because in the style there's this:
#headerimg { margin: 7px 9px 0; height: 192px; width: 740px; }
Then you have this at the top of the body:
<div id="headerimg">
I just tried setting it all to 0px but I didn't get anything closer to the top :)
Maybe when you use <div> there's an automatic break or so?
Simon
2006-05-26, 04:51 PM
Did you set the size on both the header and headerimg?
#header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 206px; width: 750px; }
#headerimg { margin: 7px 9px 0; height: 192px; width: 740px; }
Because at the top of the Body there actually are two divs...
<div id="header">
<div id="headerimg">
Also, I think you want to comment out the line that says...
#headerimg { background: url('http://www.pornomagnet.com/wp-content/themes/magnet/images/personalheader.jpg') no-repeat top;}
Feel free to hit me on icq if you want.
Simon
Simon
2006-05-26, 05:31 PM
Update - I wasn't paying attention. The line with the personalheader.jpg image is already commented out.
But the fix you need is to change the height and width of both the #header and #headerimg
Ok ,worked that problem out with Simon, thanx :)
Now I just got to figure out how to get that footer image ligned out so it shows good in all browsers :)
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.