Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-29-2005, 10:24 PM   #1
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
Alignment Problem - CSS/HTML

I know it is going to be Saturday soon, so I hope the people that do browse through here on the weekends/late at night can help me.

Problem Page

The 'Jokes...' line is centered, and so is the title of the joke, but they don't line up. The title is center using HTML and the 'Jokes...' line is centered using text-align:center. How would I go about perfectly centering them both?

^fo

EDIT: I would ultimately like to center the title using CSS, but the text-align: center doesn't work (It's currently on right), so I stuck with the trusty HTML CENTER tag. Why doesn't the CSS work?

Last edited by foolishone; 07-29-2005 at 10:27 PM.
foolishone is offline   Reply With Quote
Old 07-29-2005, 11:45 PM   #2
Member (10 bit)
 
Join Date: Jun 2003
Location: Alaska
Posts: 903
Send a message via AIM to ZeratulsAvenger
Isn't the reason they don't line up because of a varying number of charaters to the right of the middle and the left of the middle?

For "Boating" the "t" should be in the direct center, 3 characters to the left, 3 to the right. For the line with "Jokes" "Misc" and "Boating" the set is centered around the "a" in "Miscellaneous," making 5 characters to the right and 7 to the left. A minor difference but that is what is making it slightly "off" center.

A sloppy way to get it to center in a more pleasing fashion("pleasing" for the eyes at least) might be to add some spaces to either side to balance it out. They would go on the left I believe, I'm to tired to think abotu it though. You get the idea though, right? You have 35 characters, so you have 14 to each the left and the right of the centered character, so by making it go to 37 characters with two spaces on the outer left edge, it could help to push the left edge in a little and align the work Miscellaneous in a pretty fashion in relation to the joke title.

I'm pooped, but I think thats it.

Last edited by ZeratulsAvenger; 07-29-2005 at 11:50 PM.
ZeratulsAvenger is offline   Reply With Quote
Old 07-31-2005, 09:48 AM   #3
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
I think I have it now. I had some word and letter spacing in the title, and none in the top line. So I just added the spacings to the top and they lined up like I wanted them to. They are now the exact same thing except one has a border around it.

Thanks!

»fo
foolishone is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:54 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2