Text-Align

This is a discussion on "Text-Align" within the Web Page Design section. This forum, and the thread "Text-Align are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 31st, 2007, 18:46
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Text-Align

Does the Text-Align not work in FF? coz it aint on my website
Reply With Quote

  #2 (permalink)  
Old May 31st, 2007, 18:48
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text-Align

It works
Reply With Quote
  #3 (permalink)  
Old May 31st, 2007, 18:56
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text-Align

I must have the old version of FF, Also could you check the footer of my website in your firefox because on mine the XHTML and CSS are sticking out the bottom :S
Reply With Quote
  #4 (permalink)  
Old May 31st, 2007, 19:00
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text-Align

What's the link?
Reply With Quote
  #5 (permalink)  
Old May 31st, 2007, 19:04
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text-Align

http://www.marcfraser.co.uk/v1/ - also my navbar :S

Last edited by Marc; May 31st, 2007 at 19:17.
Reply With Quote
  #6 (permalink)  
Old May 31st, 2007, 19:28
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Text-Align

Take the height: off of your footer. No reason for it to be a fixed height. Also not sure why you are using border-collapse:collapse; in there, you have no tables. You could lighten your css up a bit too, and your HTML could use some cleaning. Try starting it fresh.

Code: Select all
<div id="container" align="center">
should be

Code: Select all
<div id="container">
If you want to center your layout do the following.

in body{} put text-align:center; in the #container {} put margin:0 auto; text-align:left;

Code: Select all

body{
background-color:#3B3B3B;
font-family:Arial, Sans-Serif;
font-size:0.85em;
text-align:center; /* centers #container  for IE 5.x */
}
Code: Select all

#container {
padding:20px 0 0 0;
margin:0 auto;
border:solid #FFF 1px;
}
Your footer doesn't need a width since it is in #container:

Code: Select all

#footer{
padding:4px;
border:solid #FFF;
border-width:1px 0 0 0;
text-align:center;
}
Code: Select all
a:link, a:visited, a:active {
color: #FFF;
text-decoration: none;
background:url(Images/s_arrow.png) right center no-repeat;
padding:0 13px 0 0;
}
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; May 31st, 2007 at 19:39.
Reply With Quote
  #7 (permalink)  
Old May 31st, 2007, 19:42
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text-Align

Ok, but that doesnt sort my Nav bar in FF (it aint centered). It is fine in IE7 though.
Reply With Quote
  #8 (permalink)  
Old May 31st, 2007, 19:50
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Text-Align

Um maybe text-align:center on #nav? IE 7 will handle bad code, FF will do it the right way. The css for the menu's is wacky, where did you get it?
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #9 (permalink)  
Old May 31st, 2007, 19:54
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text-Align

Hehe, i got it from Visual Infinate Menus (a program). Also i have already got text-align:center on the #nav. That is what i find strange as it is working for the footer and it is centering in IE but not in firefox.
Reply With Quote
  #10 (permalink)  
Old May 31st, 2007, 20:09
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text-Align

Bizzarre, when i take the text-align:center out of the #nav and put this in my HTML it centers it (in FF):s

Code: Select all
<div id="nav" align="center"></div>
Strange :s
Reply With Quote
  #11 (permalink)  
Old May 31st, 2007, 21:05
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Text-Align

Put the centering on the ul.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #12 (permalink)  
Old Jun 1st, 2007, 07:22
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text-Align

Ill give it a try later.
Reply With Quote
Reply

Tags
text align

Thread Tools

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertical Text Align Biddlesby Web Page Design 1 Mar 13th, 2008 22:39
Text wont align shammy2007 Web Page Design 7 Jan 21st, 2008 08:30
Align text vertically in a box josoap Web Page Design 3 Jul 12th, 2007 17:29
align text to bottom of div? JETshipJUMBO Web Page Design 9 Aug 6th, 2006 07:29
help with text-align: center iemerick Web Page Design 1 Jun 9th, 2005 18:05


All times are GMT. The time now is 00:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43