|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Former pr0n slinger.
|
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 |
![]() |
![]() |
![]() |
#2 |
That which does not kill us, will try, try again.
|
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">
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
![]() |
![]() |
![]() |
#3 |
Former pr0n slinger.
|
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? |
![]() |
![]() |
![]() |
#4 |
That which does not kill us, will try, try again.
|
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
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
![]() |
![]() |
![]() |
#5 |
That which does not kill us, will try, try again.
|
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
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
![]() |
![]() |
![]() |
#6 |
Former pr0n slinger.
|
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 ![]() |
![]() |
![]() |
![]() |
|
|