Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-2008, 02:31 AM
mjs
 
Posts: n/a
Centering <div> in 2008

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!


Reply With Quote
  #2 (permalink)  
Old 07-24-2008, 03:44 AM
Walt F. Schaefer
 
Posts: n/a
Re: Centering <div> in 2008

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!
>



Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 04:21 AM
mjs
 
Posts: n/a
Re: Centering <div> in 2008

"Walt F. Schaefer" <walt@waltswebworx.com> wrote in message
news:g68tq3$3f9$1@forums.macromedia.com...
> margin: 0 auto;


Thanks!


Reply With Quote
  #4 (permalink)  
Old 07-24-2008, 08:20 AM
Malcolm _
 
Posts: n/a
Re: Centering <div> in 2008

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~*...
~*
Reply With Quote
  #5 (permalink)  
Old 07-24-2008, 11:04 AM
David Powers
 
Posts: n/a
Re: Centering <div> in 2008

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/
Reply With Quote
  #6 (permalink)  
Old 07-24-2008, 02:06 PM
mjs
 
Posts: n/a
Re: Centering <div> in 2008

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.



Reply With Quote
  #7 (permalink)  
Old 07-24-2008, 02:07 PM
mjs
 
Posts: n/a
Re: Centering <div> in 2008

"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.


Reply With Quote
  #8 (permalink)  
Old 07-24-2008, 02:13 PM
Walt F. Schaefer
 
Posts: n/a
Re: Centering <div> in 2008

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!
>



Reply With Quote
  #9 (permalink)  
Old 07-24-2008, 03:37 PM
Walt F. Schaefer
 
Posts: n/a
Re: Centering <div> in 2008

I was wrong to say "You're welcome"?

--

Walt


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:g6a2se$d8f$1@forums.macromedia.com...
> 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!
>>>

>>
>>

>



Reply With Quote
  #10 (permalink)  
Old 07-24-2008, 03:42 PM
Michael Fesser
 
Posts: n/a
Re: Centering <div> in 2008

..oO(Murray *ACE*)

>Not at all. It was your earlier suggestion that was flawed.


???

Micha
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:33 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109