Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 10th, 2007, 11:33 PM
garyrobar garyrobar is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 86 garyrobar User rank is Corporal (100 - 500 Reputation Level)garyrobar User rank is Corporal (100 - 500 Reputation Level)garyrobar User rank is Corporal (100 - 500 Reputation Level)garyrobar User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 21 h 44 m 17 sec
Reputation Power: 4
Center a div (FF problem) within table TD

Ihave a <td>:
Code:
<td class="message-poster-box" align="center">	
     Forum Admin
     <br /><br />
     <div style="display: block; align: center; border:1px solid; background-image: url('http://dev.billiardsforum.info/forum/avatars/personal/778-160Raptox.jpg');background-repeat: no-repeat; background-position: center; height:80px; width:80px;">
	</div>
210 Posts

</td>


How can i get that div to center in there? (it leans left in FF)

Here is the class="message-poster-box"...

Code:
.message-poster-box
{
padding: 0 20px 20px 5px;
margin: 0;
width: 173px;
text-align: center;
border-bottom: 1px solid #d0d0d0;
border-left: 1px solid #d0d0d0;
border-right: 1px solid #d0d0d0;
}
__________________
Billiards
Digital Signage

Reply With Quote
  #2  
Old April 12th, 2007, 09:24 AM
subsume subsume is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 390 subsume User rank is Corporal (100 - 500 Reputation Level)subsume User rank is Corporal (100 - 500 Reputation Level)subsume User rank is Corporal (100 - 500 Reputation Level)subsume User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 17 h 6 m 45 sec
Reputation Power: 6
You are declaring the alignment of the content *within the div*, not of the div itself. You need to declare text-align:center on the parent element of the div.

Reply With Quote
  #3  
Old April 16th, 2007, 11:02 PM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
to center a div you'll want to use the following CSS:

margin-left:auto;
margin-right:auto;
text-align:center;

it also helps when the parent element has text-align:center declared.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.


Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Center a div (FF problem) within table TD


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway