• Notice regarding image hosts and attachments. See here.

HTML + css page: move into wordpress static page?

Soldato
Joined
7 Jan 2007
Posts
10,680
Location
Sussex, UK
Hi,

So I have created a HTML With CSS and it looks glorious in Dreamweaver and web browsers. However, the page needs to be a static page in wordpress, but when I upload the custom.css file and copy the html code into the static page HTML editor it all goes mental and totally ignores my
PHP:
absolute:position
and margins.

What am I doing wrong? Do I need to make a page template? How would this fix it?
 
Without seeing any of your code it's hard to tell, but at a guess I'd imagine those properties are being superceded by CSS somewhere else in the site.

Try putting !important at the end of the property to raise its precedence.
Code:
.my-class {
  position: absolute !important;
}

*ninja*
Also, just noticed, it's position: absolute, not the other way around :)
 
yeah you've put position and absolute the wrong way around. also just in case you werent aware if you want it positioned absolutely within another element you'll need to give the parent element style of position: relative, else it'll keep going up until it gets to the document and by positioned from the body and not the element it's in, if that makes any sense.
 
Without seeing any of your code it's hard to tell, but at a guess I'd imagine those properties are being superceded by CSS somewhere else in the site.

Try putting !important at the end of the property to raise its precedence.
Code:
.my-class {
  position: absolute !important;
}

*ninja*
Also, just noticed, it's position: absolute, not the other way around :)

ah ye that was a typo and is correct on my site :p

Just bought the thesis theme and all is working perfectly fine. I had to create a home.php and shove my html all in that and then do some other stuff.
 
Back
Top Bottom