|
| Web Hosting Deals | Holiday Logo Design | Webcam Chat | Website Header Templates | Register domain | Search Engine Optimisation | Web Hosting |
|
|||||||
| Website Design HTML Reference and CSS , DHTML, XML. Browser Compatibility questions and answers, Your source for basic website builder knowledge |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Aligning a div
I need a bit of help. I've completed this website for a client but have a slight problem. If I try to align the container div using left: 10%, it doesn't work on 1024x768 resolution. I've also tried margin: auto; but everything is position: absolute. The website is at http://visualsirkus.com/site/ so can anyone give me a hand with this?
Thanks ![]() |
|
|||
|
there is another option.
When you are on the html page, inserting the tag, instead of Code:
<div id="mydiv"> Code:
<div id="mydiv" align="center"> Code:
mydiv {
margin: 0 auto;
}
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|