Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 31st, 2007, 19:46
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
Text-Align

Does the Text-Align not work in FF? coz it aint on my website
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old May 31st, 2007, 19:48
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 31st, 2007, 19:56
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
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
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 31st, 2007, 20:00
Elite Veteran
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 31st, 2007, 20:04
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
Re: Text-Align

http://www.marcfraser.co.uk/v1/ - also my navbar :S
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.


Last edited by Marc; May 31st, 2007 at 20:17.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old May 31st, 2007, 20:28
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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;
}
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; May 31st, 2007 at 20:39.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old May 31st, 2007, 20:42
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
Re: Text-Align

Ok, but that doesnt sort my Nav bar in FF (it aint centered). It is fine in IE7 though.
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old May 31st, 2007, 20:50
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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?
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old May 31st, 2007, 20:54
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
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.
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old May 31st, 2007, 21:09
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
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
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old May 31st, 2007, 22:05
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Text-Align

Put the centering on the ul.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jun 1st, 2007, 08:22
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
Re: Text-Align

Ill give it a try later.
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 14th, 2008 00:39
Text wont align shammy2007 Web Page Design 7 Jan 21st, 2008 09:30
Align text vertically in a box josoap Web Page Design 3 Jul 12th, 2007 18:29
align text to bottom of div? JETshipJUMBO Web Page Design 9 Aug 6th, 2006 08:29
help with text-align: center iemerick Web Page Design 1 Jun 9th, 2005 19:05


All times are GMT. The time now is 18:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8