This is a discussion on "Quick Firefox CSS question" within the Web Page Design section. This forum, and the thread "Quick Firefox CSS question are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Quick Firefox CSS question
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Quick Firefox CSS question
I want to centre a table within a div, which works okay in IE with
table { display: block; margin: auto; } But in Firefox it aligns on the left. Any ideas? |
|
|
|
|||
|
Re: Quick Firefox CSS question
I am curious as to why you feel the need to be specifying; display: block; in your table styling.
|
|
|||
|
Re: Quick Firefox CSS question
Yes, the problem is with Firefox and not IE.
The reason I have display: block in my table styling is because I'm still something of a novice with CSS and it was suggested as a way of centering by someone else here. Basically, I have a table of information which I need to sit centrally within a div. is there a standard way of doing this with CSS? |
|
||||
|
Re: Quick Firefox CSS question
margin:0 auto?
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
||||
|
Re: Quick Firefox CSS question
Are you talking about horizontally centered, or both horizontally and vertically centered?
|
|
||||
|
Re: Quick Firefox CSS question
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Quick Firefox CSS question
Your best cross browser solution would be to style the div with;
|
|
||||
|
Re: Quick Firefox CSS question
If "margin: 0 auto;" doesn't center the table in Firefox, you should check your code -- you've made an error somewhere.
|
![]() |
| Tags |
| centering, firefox, tables |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Alt + S fix for Firefox (Shortcut for quick-reply) | alexgeek | Scripts and Online Services | 0 | Jan 4th, 2008 09:51 |
| quick question | jtyoungs | PHP Forum | 7 | Sep 25th, 2007 15:45 |
| QUICK, need help with code for firefox users | crowmisfits | Starting Out | 2 | Sep 2nd, 2007 12:20 |
| Quick question | extrememonkey | Website Planning | 0 | Mar 27th, 2007 17:56 |
| Quick question | Accurax | Web Page Design | 5 | Nov 1st, 2006 17:44 |