Adobe Dreamweaver Forums



Last 10 THreads :         a group for eve players to discouss the interest (Last Post : evemaven - Replies : 0 - Views : 1 )           »          Trouble using variables to name and instantiateTextFields (Last Post : jc_2006 - Replies : 1 - Views : 2 )           »          Background color code is not working. Please help (Last Post : Tim G - Replies : 9 - Views : 10 )           »          error (Last Post : Tim G - Replies : 1 - Views : 2 )           »          DWCS4 Menus (Last Post : DouglasWD - Replies : 0 - Views : 1 )           »          Can't open more than one Macromedia product at a time (Last Post : ChandaBB - Replies : 7 - Views : 8 )           »          DWCS4 Fade/Appear image load question (Last Post : DouglasWD - Replies : 0 - Views : 1 )           »          NetStream progressive FLV download current frame (Last Post : AsafH - Replies : 0 - Views : 1 )           »          Creating Newsletters (Last Post : Yovav - Replies : 2 - Views : 10 )           »          CS4 Div Tags Help Needed (Last Post : Ian Edwards - Replies : 4 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: , ,



Reply
  #21 (permalink)  
Old 07-24-2008, 09:18 PM
Michael Fesser
 
Posts: n/a
Diggs:
Default Re: Centering <div> in 2008

.oO(Murray *ACE*)

>Return very_lame.


Invalid return value.

Micha
Reply With Quote


Sponsored Links
  #22 (permalink)  
Old 07-24-2008, 09:18 PM
Michael Fesser
 
Posts: n/a
Diggs:
Default 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


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
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk