Jump to content

Auto Margin + Top Margin


TheFilmGod

Recommended Posts

you can apply multiple margins in one margin statement, margins can be set in either of the following formats:

 

margin: [top]

[bottom]

margin: 10px auto 10px auto;

 

margin: [top&bottom] [left&right]

margin: 10px auto;

 

margin: [all]

margin: auto;

A quick test on your own would save you waiting for a reply.

 

You know, you always have useless answers. I rather have you not comment my posts than act all smart and ask me to experiment. I already have and of course it hasn't worked correctly 100%. I'm asking if its a browser problem, a.k.a. it works in some browsers and not others.

 

That is why I'm asking so I can make sure.

 

Thanks wildteen88 for a great reply. I'm going to try that!!  :);)

if you are having browser problems may I suggest you use a good dtd?

 

i use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> simply because it irons out MOST of the differences in how these clients render (esp IE6). Makes you job so much easier...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.