Adobe Dreamweaver Forums



Last 10 THreads :         Flash Player 10, problem with emdended fonts andattachment (Last Post : plasmaflex - Replies : 2 - Views : 3 )           »          DWCS4 Effects>Appear on DIV background image? (Last Post : Murray *ACE* - Replies : 4 - Views : 5 )           »          A New Joke Website (Last Post : nightwolf666 - Replies : 5 - Views : 6 )           »          flash and wide-gamut monitors (Last Post : tonton66 - Replies : 1 - Views : 3 )           »          creating links between Fireworks images (Last Post : Murray *ACE* - Replies : 4 - Views : 5 )           »          CS4 Div Tags Help Needed (Last Post : Murray *ACE* - Replies : 6 - Views : 7 )           »          absolute images (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          So many issues with CS4 (bugs/rants) (Last Post : Murray *ACE* - Replies : 6 - Views : 7 )           »          Can I Recover my Files? (Last Post : samcec - Replies : 5 - Views : 23 )           »          Character Generator (Last Post : twistedpancreas - Replies : 0 - Views : 1 )           »         


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
  #1 (permalink)  
Old 07-24-2008, 04:31 AM
mjs
 
Posts: n/a
Diggs:
Default Is it possible to bottom-justify text within a <div>?

I have a small paragraph I'd like to bottom-justify in a <div>. Is this even
possible?




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2008, 06:58 AM
Walt F. Schaefer
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

Nope.

Next question? :-)

--

Walt


"mjs" <no@thanks.com> wrote in message
news:g68rpg$1ba$1@forums.macromedia.com...
>I have a small paragraph I'd like to bottom-justify in a <div>. Is this
>even possible?
>



Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 06:58 AM
mjs
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

"Walt F. Schaefer" <walt@waltswebworx.com> wrote :
>
> "mjs" <no@thanks.com> wrote :
>>
>> I have a small paragraph I'd like to bottom-justify in a <div>. Is this
>> even possible?

>
> Nope.
>
> Next question? :-)


Looks like I'm going back to tables... for the Nth time. ;-)

Not sure why anyone ever talked me out of 'em. I keep hitting these brick
walls that can only be solved via tables.


Reply With Quote


  #4 (permalink)  
Old 07-24-2008, 06:58 AM
Walt F. Schaefer
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

> Not sure why anyone ever talked me out of 'em. I keep hitting these brick
> walls that can only be solved via tables.


I'm not sure why. I haven't used them for years, except for tabular data and
some forms, and haven't found any need to. Divs are far more flexible, use
less code and provide many times the overall layout capability. Best to
figure them out I think.


--

Walt
> "Walt F. Schaefer" <walt@waltswebworx.com> wrote :
>>
>> "mjs" <no@thanks.com> wrote :
>>>
>>> I have a small para


"mjs" <no@thanks.com> wrote in message
news:g69000$5f5$1@forums.macromedia.com...
> "Walt F. Schaefer" <walt@waltswebworx.com> wrote :
>>
>> "mjs" <no@thanks.com> wrote :
>>>
>>> I have a small paragraph I'd like to bottom-justify in a <div>. Is this
>>> even possible?

>>
>> Nope.> Not sure why anyone ever talked me out of 'em. I keep hitting
>> these brick

> walls that can only be solved via tables.


>>
>> Next question? :-)

>
> Looks like I'm going back to tables... for the Nth time. ;-)
>
> Not sure why anyone ever talked me out of 'em. I keep hitting these brick
> walls that can only be solved via tables.
>



Reply With Quote
  #5 (permalink)  
Old 07-24-2008, 10:03 AM
Malcolm _
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

On Wed, 23 Jul 2008 23:09:12 -0400, "mjs" <no@thanks.com> wrote:

>I have a small paragraph I'd like to bottom-justify in a <div>. Is this even
>possible?
>


CSS can be tricky in parts

but do you mean something like this ?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
..box {
width: 80%; background-color:silver;
height: 4em; }
..box p {
font-family: Arial, Helvetica, sans-serif;
font-size: 15x;
color: red;
padding-left: 1em;
padding-top: 2.75em; }
</style>
</head>
<body>
<div class="box"><p>This quick brown fox</p></div>
</body>
</html>
--

~Malcolm~*...
~*
Reply With Quote
  #6 (permalink)  
Old 07-24-2008, 12:30 PM
Dooza
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

mjs wrote:
> I have a small paragraph I'd like to bottom-justify in a <div>. Is this even
> possible?


Just use the padding-top to put space above the text to make it move to
the bottom of the div.

Steve
Reply With Quote


  #7 (permalink)  
Old 07-24-2008, 12:30 PM
Osgood
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

Dooza wrote:
> mjs wrote:
>> I have a small paragraph I'd like to bottom-justify in a <div>. Is
>> this even possible?

>
> Just use the padding-top to put space above the text to make it move to
> the bottom of the div.



There are all sorts of tricks that can be used to 'initially' place the
text/element at the foot of a <div> i.e., using padding, using height on
the <div> using 100% height on html and body BUT all will fail at some
stage when the content 'grows' in other parts of the design.

There is NO css equal to aligning an element to the bottom like can be
achieved when using a table...so I don't align anything to the bottom
when undertaking a web design. I say that's bad because it can sometimes
compromises the design I want to achieve...but I can't have both...I can
choose between the lesser of two evils and using <divs> instead of
tables, I believe, come out on top in this senario.

Reply With Quote
  #8 (permalink)  
Old 07-24-2008, 02:23 PM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

Let's examine WHY you need to bottom justify. Can you elaborate, please?

--
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:g69000$5f5$1@forums.macromedia.com...
> "Walt F. Schaefer" <walt@waltswebworx.com> wrote :
>>
>> "mjs" <no@thanks.com> wrote :
>>>
>>> I have a small paragraph I'd like to bottom-justify in a <div>. Is this
>>> even possible?

>>
>> Nope.
>>
>> Next question? :-)

>
> Looks like I'm going back to tables... for the Nth time. ;-)
>
> Not sure why anyone ever talked me out of 'em. I keep hitting these brick
> walls that can only be solved via tables.
>


Reply With Quote
  #9 (permalink)  
Old 07-24-2008, 03:29 PM
darrel
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

> It's a design issue. Sometimes, you just want the text to be at the bottom
> of the section, on top of a background image that springs upwards.


The best way to not fight CSS it work within it's abilities. Design around
the medium you are workin in.

I think we web developers sometimes get hung up on accommodating a specific
visual design need when it's usually more pragmatic to accommodate the
specific HTML/CSS abilities and tweak the visual design as needed.

All that said, if you can post a visual, folks would be glad to lend a hand
in figuring out ways to accomplish what you want.

And yea, sometimes a table is just the trick needed.

-Darrel

Reply With Quote


  #10 (permalink)  
Old 07-24-2008, 03:29 PM
mjs
 
Posts: n/a
Diggs:
Default Re: Is it possible to bottom-justify text within a <div>?

"Osgood" <notavailable@thisaddress.com> wrote in message
news:g69mqa$ku$1@forums.macromedia.com...
> There are all sorts of tricks that can be used to 'initially' place the
> text/element at the foot of a <div> i.e., using padding, using height on
> the <div> using 100% height on html and body BUT all will fail at some
> stage when the content 'grows' in other parts of the design.
>
> There is NO css equal to aligning an element to the bottom like can be
> achieved when using a table...so I don't align anything to the bottom when
> undertaking a web design. I say that's bad because it can sometimes
> compromises the design I want to achieve...but I can't have both...I can
> choose between the lesser of two evils and using <divs> instead of tables,
> I believe, come out on top in this senario.


Doesn't anyone find it ridiculous that we can't bottom-justify text in 2008,
unless we go back to 1995 technology?

How do the people who make these decisions keep forgetting stuff like this?
Tables would be all but obsolete if not for the fact that they can occuppy
100% of a viewable area dynamically (which divs still cannot do), and can
justify their content in any manner imaginable.

Again, I ask... how many more years of people continuing to complain about
having to go back to tables do the people making the decisions need before
they simply incorporate the functionality in divs?

<div style="width:100%; height 100%"></div>

Or..

<div style="text-align:bottom"></div>

I know we can't do either of these things right now, but I find it
ridiculous that we can't. TPTB keeps finding new ways to wow us, while
completely ignoring the basics that are forcing some of us to continue to
mix divs with tables in our layouts.

I can't "simulate" bottom-justification via top-padding because the text
being justified is dynamic, not static.


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 01:29 PM.


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