Support Forums

Old 10-23-2008, 07:57 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 894
Rep Power: 23
bowers01 is on a distinguished road
Default Ie7 Centres But Firefox Does Not

Hi,
For TruckYard.Com.Au - Buy And Sell New And Used Trucks & Buses Free i am using <table class="table4" width="960" id="table1">

in table4 is
table.table4 {
border: 0;
align: centre;
}

In IE7 the logo image is centred, but if i view it in firefox it is aligned left.
Any ideas why?
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 10-23-2008, 09:55 AM   #2
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 46
Maffo is just really niceMaffo is just really nice
Default

align doesnt exist in css
use text-align
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 10-23-2008, 10:58 AM   #3
Coder
 
Join Date: Mar 2006
Posts: 4,693
Rep Power: 114
Lhotch is a glorious beacon of lightLhotch is a glorious beacon of lightLhotch is a glorious beacon of light
Default

W3C CSS Validator results for http://truckyard.com.au/ (CSS level 2.1)
__________________
Larry

What I post here should be used only as a guide to point you in the right direction. If the code I post doesnt make any sense or work as posted then you should spend more time reading the various manuals and tutorials so it does make sense and you can tweak it to work. A sure fire way to get yourself in trouble is to implement changes you dont have an intimate understanding of. Im happy to help, but I am not here to teach you to code or create your site for you.
Lhotch is offline   Reply With Quote
Old 10-23-2008, 03:17 PM   #4
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,691
Rep Power: 48
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

As Maffo already pointed out, there is no center like that in CSS.

Why not just put the alignment in the table itself as a table is an HTML "block" element. <table align="center">.

To align a block element in CSS you need to use margin: auto

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-23-2008, 07:42 PM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 894
Rep Power: 23
bowers01 is on a distinguished road
Default

Ok, XHTML doesn't allow align in the code, it needs to be in the css. Also how can i do width and height without putting it in the html?

<table align="centre" width="960" id="table1"> still does not work. Any ideas?
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 10-23-2008, 07:52 PM   #6
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,691
Rep Power: 48
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Quote:
Originally Posted by bowers01 View Post
Ok, XHTML doesn't allow align in the code, it needs to be in the css. Also how can i do width and height without putting it in the html?

<table align="centre" width="960" id="table1"> still does not work. Any ideas?
Cheers
center not centre
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-23-2008, 07:54 PM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 894
Rep Power: 23
bowers01 is on a distinguished road
Default

Woops, my bad.
Thanks for the help.
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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
IE and Firefox problem wesse249 v4 Questions & Support 3 09-06-2008 12:37 PM
IE7 V Firefox - V4 Ad Category layout torrox v4 Questions & Support 1 06-09-2008 10:49 AM
firefox width problem? Kavin v3.1 Questions & Support 4 07-27-2007 06:05 PM
firefox question wel-usa v3.1 Questions & Support 1 07-25-2006 10:59 PM
Neat Firefox juven14 Off Topic 5 06-21-2006 12:24 PM


All times are GMT -4. The time now is 07:31 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0