HighDots Forums  

need help center aligning in FF; works in IE

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss need help center aligning in FF; works in IE in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lawpoop
 
Posts: n/a

Default need help center aligning in FF; works in IE - 06-16-2009 , 01:33 PM






I have a layout that works in IE but not in Firefox. I want the table
that holds the form to be center aligned.

http://nerdcraft.net/test.html

What am I doing wrong here?

Reply With Quote
  #2  
Old   
Ed Mullen
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 02:27 PM






lawpoop wrote:
Quote:
I have a layout that works in IE but not in Firefox. I want the table
that holds the form to be center aligned.

http://nerdcraft.net/test.html

What am I doing wrong here?
Add this to your table CSS:

margin-left: auto;
margin-right: auto;


--
Ed Mullen
http://edmullen.net
Deja Roo: What? ANOTHER kangaroo?!!!

Reply With Quote
  #3  
Old   
Jeff
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 05:56 PM



lawpoop wrote:
Quote:
I have a layout that works in IE but not in Firefox. I want the table
that holds the form to be center aligned.

http://nerdcraft.net/test.html
Works in my FF.

You'll want to put this in standards mode using the right doctype.
That's needed for some browsers.

Aside from that margin: 0 auto; is all you need. You may wish to set
a width as centering a %100 wide container is an exercise in futility.

Jeff


> What am I doing wrong here?

Reply With Quote
  #4  
Old   
dorayme
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 06:46 PM



In article <2t5do8.4ag.17.1 (AT) news (DOT) alt.net>, Ed Mullen <ed (AT) edmullen (DOT) net>
wrote:

Quote:
lawpoop wrote:
I have a layout that works in IE but not in Firefox. I want the table
that holds the form to be center aligned.

http://nerdcraft.net/test.html

What am I doing wrong here?

Add this to your table CSS:

margin-left: auto;
margin-right: auto;
Or margin: auto;

OP doesn't seem to need his style="padding-top: 300px; text-align:
center; margin-left: auto; margin-right: auto;" on his containing DIV

--
dorayme

Reply With Quote
  #5  
Old   
Ed Mullen
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 08:48 PM



dorayme wrote:
Quote:
In article <2t5do8.4ag.17.1 (AT) news (DOT) alt.net>, Ed Mullen <ed (AT) edmullen (DOT) net
wrote:

lawpoop wrote:
I have a layout that works in IE but not in Firefox. I want the table
that holds the form to be center aligned.

http://nerdcraft.net/test.html

What am I doing wrong here?
Add this to your table CSS:

margin-left: auto;
margin-right: auto;

Or margin: auto;

OP doesn't seem to need his style="padding-top: 300px; text-align:
center; margin-left: auto; margin-right: auto;" on his containing DIV

Right, but it's causing no harm, correct?

--
Ed Mullen
http://edmullen.net
Opticalrectitus - a condition in which the optic nerve is connected to
the anus. The major symptom is that all observations are routed through
the wrong orifice.

Reply With Quote
  #6  
Old   
dorayme
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 09:23 PM



In article <2t642r.tb8.19.1 (AT) news (DOT) alt.net>, Ed Mullen <ed (AT) edmullen (DOT) net>
wrote:

....
Quote:
margin-left: auto;
margin-right: auto;

Or margin: auto;

OP doesn't seem to need his style="padding-top: 300px; text-align:
center; margin-left: auto; margin-right: auto;" on his containing DIV


Right, but it's causing no harm, correct?
The world is at a tipping point, climate-wise and every other-wise. Each
byte means more energy. Tell them you will have your coffee cold
tomorrow at Starbucks to help out Ed. <g>

--
dorayme

Reply With Quote
  #7  
Old   
Ed Mullen
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 09:45 PM



dorayme wrote:
Quote:
In article <2t642r.tb8.19.1 (AT) news (DOT) alt.net>, Ed Mullen <ed (AT) edmullen (DOT) net
wrote:

...
margin-left: auto;
margin-right: auto;
Or margin: auto;

OP doesn't seem to need his style="padding-top: 300px; text-align:
center; margin-left: auto; margin-right: auto;" on his containing DIV

Right, but it's causing no harm, correct?

The world is at a tipping point, climate-wise and every other-wise. Each
byte means more energy. Tell them you will have your coffee cold
tomorrow at Starbucks to help out Ed. <g

Well, I would, but they see me coming before I enter the door and start
my Triple Grande Latte going before I can say anything. If I wanted
anything else it would be a big problem for me. I mean, they'd toss the
drink and make me something else (I dunno, a Triple Grande Moccha) but
then I'd feel guilty and for the next month they'd all be freaked out,
not knowing what to do when they see me coming across the parking lot.

Heck, even the newbies know my name and drink now. It's almost
embarrassing. Although, I must admit, it's a great business model
Especially since, before I actually have my coffee I'm pretty much out
of it. You could sell me a bridge in Brooklyn, etc. before that. Which
is why, as my wife of ... umm ... 36 years ... (partner of 38 years)
will tell you: "Oh, God! Just don't even try to talk to him before
about ten AM. You're better off trying to converse with dirt!" And,
no, she hasn't actually said that but she has come really really close.

My morning ritual is nearly sacrosanct. Wall St. Journal, USA Today and
the Atlanta Journal Constitution. Two crosswords Monday - Thursday.
Then on Friday (one of my favorite days) I also get the WSJ puzzle.
And, on Sunday the AJC has both the LA Times and the NY Times Sunday
puzzles! Oooh, baby!

Crosswords are hilarious. Ogee. Tor. Arete. Stere. Have you ever
heard anyone actually utter these words in conversation? If so, find
new friends.

I remember one puzzle some time ago where the answer was
"conflagration." Made me think of Usenet.

--
Ed Mullen
http://edmullen.net
Animal testing is a bad idea - they get nervous and give the wrong answers.

Reply With Quote
  #8  
Old   
Jeff
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 10:04 PM



Ed Mullen wrote:
Quote:
dorayme wrote:
In article <2t5do8.4ag.17.1 (AT) news (DOT) alt.net>, Ed Mullen <ed (AT) edmullen (DOT) net
wrote:

lawpoop wrote:
I have a layout that works in IE but not in Firefox. I want the table
that holds the form to be center aligned.

http://nerdcraft.net/test.html

What am I doing wrong here?
Add this to your table CSS:

margin-left: auto;
margin-right: auto;

Or margin: auto;
OP doesn't seem to need his style="padding-top: 300px; text-align:
center; margin-left: auto; margin-right: auto;" on his containing DIV


Right, but it's causing no harm, correct?
It looked to me that he kept adding stuff until it worked, or didn't.
Often those superfluous bits come back to bite you. It certainly adds
complexity if you want something else.

My own belief is not to add anything that you don't know what it
does. Of course, I've seen a lot of html where that wasn't true.

Jeff
>

Reply With Quote
  #9  
Old   
Ed Mullen
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 10:17 PM



Jeff wrote:
Quote:
Ed Mullen wrote:
dorayme wrote:
In article <2t5do8.4ag.17.1 (AT) news (DOT) alt.net>, Ed Mullen
ed (AT) edmullen (DOT) net> wrote:

lawpoop wrote:
I have a layout that works in IE but not in Firefox. I want the table
that holds the form to be center aligned.

http://nerdcraft.net/test.html

What am I doing wrong here?
Add this to your table CSS:

margin-left: auto;
margin-right: auto;

Or margin: auto;
OP doesn't seem to need his style="padding-top: 300px; text-align:
center; margin-left: auto; margin-right: auto;" on his containing DIV


Right, but it's causing no harm, correct?

It looked to me that he kept adding stuff until it worked, or didn't.
Often those superfluous bits come back to bite you. It certainly adds
complexity if you want something else.

My own belief is not to add anything that you don't know what it does.
Of course, I've seen a lot of html where that wasn't true.

Jeff

There are purists amongst us.

Those who construct CSS and HTML letter by letter. God bless them. I
don't have the time nor the inclination. I freely "borrow" bits that
work for me. I then try to trim out what isn't relevant to my usage. Do
I get it all out? No. Are my efforts perfect? Hardly.

But, when someone comments on it I try to

accept it and make it work, adjust as necessary, etc.

--
Ed Mullen
http://edmullen.net
Instead of talking to your plants, if you yelled at them would they
still grow, only to be troubled and insecure?

Reply With Quote
  #10  
Old   
dorayme
 
Posts: n/a

Default Re: need help center aligning in FF; works in IE - 06-16-2009 , 11:08 PM



In article <2t67ce.h79.17.1 (AT) news (DOT) alt.net>, Ed Mullen <ed (AT) edmullen (DOT) net>
wrote:

Quote:
The world is at a tipping point, climate-wise and every other-wise. Each
byte means more energy. Tell them you will have your coffee cold
tomorrow at Starbucks to help out Ed. <g


Well, I would, but they see me coming before I enter the door and start
my Triple Grande Latte going before I can say anything.
I can *hire* you a kangaroo suit, you hop over, they would not recognise
you.

--
dorayme

Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.