Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 07-24-2008, 06:43 PM
Walt F. Schaefer
 
Posts: n/a
Re: Centering <div> in 2008

Agreed. Although I am prone to see it as incomplete rather than flat-out
wrong, perhaps a distinction without a difference, but a distinction
nonetheless. :-)

--

Walt


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:g6a8fu$j8o$1@forums.macromedia.com...
> margin:0 auto, with no width.
>
> --
> 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
> ==================
>
>
> "Michael Fesser" <netizen@gmx.de> wrote in message
> news:9n8h84panj56e4u4f2llmnsolef76a2vds@4ax.com...
>> .oO(Murray *ACE*)
>>
>>>Not at all. It was your earlier suggestion that was flawed.

>>
>> ???
>>
>> Micha

>



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

..oO(Murray *ACE*)

>margin:0 auto, with no width.


Ah, OK. ;)

<excuse mode="lame">
The use of 'width' was implied, because it was totally obvious.
</excuse>

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

"Michael Fesser" <netizen@gmx.de> wrote in message
news:p3hh84dnifidcu7jq22ibdg00slemckpmn@4ax.com...
> .oO(Murray *ACE*)
>
>>margin:0 auto, with no width.

>
> Ah, OK. ;)
>
> <excuse mode="lame">
> The use of 'width' was implied, because it was totally obvious.
> </excuse>
>
> Micha


I got that I needed a fixed width, don't worry. It worked well in both
browsers. ;)


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

"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:g6a2vm$dbc$1@forums.macromedia.com...
>> Naturally, because <div> can't hug content like tables can.

>
> This is not a detriment.


In what way is it a positive?

>> Why does no width have to mean 100% width?

>
> That's how all block tags work (<p>, <h#>, <div>, etc.).


Didn't say it wasn't. Merely asked why it was so. The logic behind it, if
you will.

Honestly, what is there to be gained by forcing 100% width on anything
without width specified, when human logic would call for it to adopt the
width of the content? Like tables do.

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


I'm not avoiding anything; I'm asking questions you have no answers for.
There's a difference.

You clearly accept convention for what it is, and I respect that. But don't
go pitying the windmill tilters. For it is us who demanded CSS be invented
in the first place. ;-)

Others would have been happy 'accepting the truth of HTML'... and use
individual font tags forever.

To each their own. ;-)


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

..oO(Murray *ACE*)

>Return very_lame.


Invalid return value.

Micha
Reply With Quote
  #16 (permalink)  
Old 07-24-2008, 08:56 PM
Michael Fesser
 
Posts: n/a
Re: Centering <div> in 2008

..oO(mjs)

>>> Why does no width have to mean 100% width?

>>
>> That's how all block tags work (<p>, <h#>, <div>, etc.).

>
>Didn't say it wasn't. Merely asked why it was so. The logic behind it, if
>you will.
>
>Honestly, what is there to be gained by forcing 100% width on anything
>without width specified, when human logic would call for it to adopt the
>width of the content? Like tables do.


It's the intended nature of HTML. On graphical displays it always
spreads across the entire available width until specified otherwise.
This is what block-level elements do by default. Your intended shrink-
to-fit behaviour can be accomplished with inline-blocks or floats.

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

>
>I'm not avoiding anything; I'm asking questions you have no answers for.
>There's a difference.


The answer is: A div is not a table. HTML tables are quite special
beasts and behave very differently, compared to the other elements. They
are somewhat unique, while all other block-level elements share a common
and reliable default behaviour.

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 07:00 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


Sponsors:
Credit Card | Myspace Layouts | Ringtone | Myspace Images | Agencia de viagens



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 110 111 112 113 114