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.



 Subscribe in a reader

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

Notices


Reply
 
LinkBack Thread Tools
  #1  
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?
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 Jun 2nd, 2007, 13:21
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,765
Thanks: 0
Thanked 14 Times in 14 Posts
Re: IE 7 centers my table text

Can you show us your website? Were not mind readers - we need to see your code.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.

Last edited by Marc; Jun 2nd, 2007 at 13:25.
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 Jun 2nd, 2007, 13:31
Elite Veteran
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?
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 Jun 2nd, 2007, 21:11
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
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
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 23:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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