2 replies [Last post]
BuzzParker
BuzzParker's picture
Offline
Regular
Last seen: 13 years 31 weeks ago
Timezone: GMT-4
Joined: 2008-05-04
Posts: 14
Points: 0

Why is this text not centering? Seems to be ignoring all the CSS. Gotta be something simple.

Test

#outsidebox {
height:100%;
width:100%;
background-color: red;
border:thick #00FF00;
text-align:center;
}

centered text

Sad

/code tags added - tph

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 week 6 days ago
Joined: 2004-06-30
Posts: 9679
Points: 815

Validate your HTML. You have

Validate your HTML. You have two <HTML> tags and you don't need the octothorpe in the HTML markup, only the CSS section.

Verschwindende wrote:
  • CSS doesn't make pies

BuzzParker
BuzzParker's picture
Offline
Regular
Last seen: 13 years 31 weeks ago
Timezone: GMT-4
Joined: 2008-05-04
Posts: 14
Points: 0

Thank You.

That did it. Smile