![]() |
why won't it work...
Okay, I have a header on a blank page. Right now, it's aligned to the left, touching the side of my browser.
I want to have an imaginary 900px wide, 100px high box, with the header in it. (not repeating though, as the header image itself is only 300px wide). I want the imaginary box to be centered, and the header to the very left of that imaginary box. Here's some codes I have.. Stylesheet.css: Code:
.header { Code:
<body> |
CSS does not have an "align" property. Try "text-align" instead.
|
You can't align layout elements with text-align. You have to give it a width and then use margin: auto;
Code:
.header { |
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|