|
|||
|
I've Googled this and come up with 100 different ways to do it, all dating
back to 2001-2004 (why is it so hard to sort Google results by most recent?) Anyhoo, was wondering if someone could give me the 2008 version : how do I center a DIV? Not its contents, but the div itself. Thanks! |
| Sponsored Links |
|
|||
|
margin: 0 auto;
-- Walt "mjs" <no@thanks.com> wrote in message news:g68piq$sg9$1@forums.macromedia.com... > I've Googled this and come up with 100 different ways to do it, all dating > back to 2001-2004 (why is it so hard to sort Google results by most > recent?) > > Anyhoo, was wondering if someone could give me the 2008 version : how do I > center a DIV? Not its contents, but the div itself. > > Thanks! > |
|
|||
|
On Wed, 23 Jul 2008 22:31:30 -0400, "mjs" <no@thanks.com> wrote:
>I've Googled this and come up with 100 different ways to do it, all dating >back to 2001-2004 (why is it so hard to sort Google results by most recent?) > >Anyhoo, was wondering if someone could give me the 2008 version : how do I >center a DIV? Not its contents, but the div itself. > >Thanks! > Goggle advance search has a date/time parameter towards the bottom of the page. http://www.google.co.uk/advanced_search?hl=en http://www.google.co.uk/search?hl=en...i=&safe=images -- ~Malcolm~*... ~* |
|
|||
|
Walt F. Schaefer wrote:
> margin: 0 auto; For this to work, the element (<div>) needs a declared width. Without a width, the element remains on the left of the page. -- David Powers, Adobe Community Expert Author, "The Essential Guide to Dreamweaver CS3" (friends of ED) Author, "PHP Solutions" (friends of ED) http://foundationphp.com/ |
|
|||
|
Naturally, because <div> can't hug content like tables can. They're either
100% wide, or have a static value. Another limitation of divs that seems unnecessary to me. Why does no width have to mean 100% width? We accept these realities as they are but never question them. I can't think of any good reason why divs can't hug content the way tables do, UNLESS they're specified to be 100% wide. "David Powers" <david@example.com> wrote in message news:g69nn1$17s$1@forums.macromedia.com... > Walt F. Schaefer wrote: >> margin: 0 auto; > > For this to work, the element (<div>) needs a declared width. Without a > width, the element remains on the left of the page. |
|
|||
|
"Malcolm _" <malcom@mon.org> wrote in message
news:bkeg8450sfnbnmi4au5tg905v21g8u2hq4@4ax.com... > On Wed, 23 Jul 2008 22:31:30 -0400, "mjs" <no@thanks.com> wrote: > >>I've Googled this and come up with 100 different ways to do it, all dating >>back to 2001-2004 (why is it so hard to sort Google results by most >>recent?) >> >>Anyhoo, was wondering if someone could give me the 2008 version : how do I >>center a DIV? Not its contents, but the div itself. >> >>Thanks! >> > Goggle advance search has a date/time parameter towards the bottom of > the page. I know we can pull out only results from the past day, week or month... but I'd like to pull out ALL the results, and just have them sorted by most recent. For some reason, Google still cannot do this. |
|
|||
|
You're welcome.
-- Walt "mjs" <no@thanks.com> wrote in message news:g6901t$5g9$1@forums.macromedia.com... > "Walt F. Schaefer" <walt@waltswebworx.com> wrote in message > news:g68tq3$3f9$1@forums.macromedia.com... >> margin: 0 auto; > > Thanks! > |
|
|||
|
Wrong, but who's counting? 8)
-- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "Walt F. Schaefer" <walt@waltswebworx.com> wrote in message news:g6a2m1$d2g$1@forums.macromedia.com... > You're welcome. > > -- > > Walt > > > "mjs" <no@thanks.com> wrote in message > news:g6901t$5g9$1@forums.macromedia.com... >> "Walt F. Schaefer" <walt@waltswebworx.com> wrote in message >> news:g68tq3$3f9$1@forums.macromedia.com... >>> margin: 0 auto; >> >> Thanks! >> > > |
|
|||
|
> Naturally, because <div> can't hug content like tables can.
This is not a detriment. > Why does no width have to mean 100% width? That's how all block tags work (<p>, <h#>, <div>, etc.). > I can't think of any good reason why divs can't hug content the way tables > do, UNLESS they're specified to be 100% wide. You are tilting at windmills as a way of avoiding the truth of HTML. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "mjs" <no@thanks.com> wrote in message news:g6a29l$cie$1@forums.macromedia.com... > Naturally, because <div> can't hug content like tables can. They're either > 100% wide, or have a static value. > > Another limitation of divs that seems unnecessary to me. Why does no width > have to mean 100% width? We accept these realities as they are but never > question them. I can't think of any good reason why divs can't hug content > the way tables do, UNLESS they're specified to be 100% wide. > > "David Powers" <david@example.com> wrote in message > news:g69nn1$17s$1@forums.macromedia.com... >> Walt F. Schaefer wrote: >>> margin: 0 auto; >> >> For this to work, the element (<div>) needs a declared width. Without a >> width, the element remains on the left of the page. > > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise