IE 7 centers my table text

This is a discussion on "IE 7 centers my table text" within the Web Page Design section. This forum, and the thread "IE 7 centers my table text 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 Jun 2nd, 2007, 12:19
New Member
Join Date: May 2007
Location: Norwich
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow IE 7 centers my table text

I have just built an html website using tables and a attached css style sheet using Dreamweaver 8.

The text in the tables is aligned to the left and the whole webpage is centered in the browser using the div tag.

When I open the web page in Firefox it works fine i.e: it centers the web page and aligns the table text to the left.

But in IE7 it's a different kettle of fish as it centers the web page but then centers the text in the table.

I have tried removing the DIV tag and changing attributes in the css file but nothing seems to work.
Any ideas?
Reply With Quote

  #2 (permalink)  
Old Jun 2nd, 2007, 13:21
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: IE 7 centers my table text

Can you show us your website? Were not mind readers - we need to see your code.

Last edited by Marc; Jun 2nd, 2007 at 13:25.
Reply With Quote
  #3 (permalink)  
Old Jun 2nd, 2007, 13:31
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE 7 centers my table text

What code did you use to align the text left?
Reply With Quote
  #4 (permalink)  
Old Jun 2nd, 2007, 21:11
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE 7 centers my table text

Code: Select all
table {
  text-align: left;
}
table.content {
  margin: 0 auto;
}
Your outside table:

Code: Select all
<table class="content">
By the way, it's a bad idea to be using tables.
Reply With Quote
Reply

Tags
css, dreamweaver, ie7, internet exporer, text aligning

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
formatting of text froma a dynamic table in dreamweaver chimp Databases 2 Jan 2nd, 2007 10:09
Problem with showing active text in .net table? JayHegUK ASP.NET Forum 4 Sep 7th, 2006 20:52
Need to align width of Float table with the table below Vertabase Web Page Design 4 Mar 8th, 2006 21:21
text in one line - How To Avoid TABLE tag and use CSS ? pugo Web Page Design 4 Jan 18th, 2006 04:14
Text replace in a table cell on same page gribble Web Page Design 10 Sep 28th, 2005 05:32


All times are GMT. The time now is 17:49.


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