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, 03:09 AM
mjs
 
Posts: n/a
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
  #2 (permalink)  
Old 07-24-2008, 03:48 AM
Walt F. Schaefer
 
Posts: n/a
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, 04:20 AM
mjs
 
Posts: n/a
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, 05:34 AM
Walt F. Schaefer
 
Posts: n/a
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, 08:50 AM
Malcolm _
 
Posts: n/a
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, 10:41 AM
Dooza
 
Posts: n/a
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, 10:50 AM
Osgood
 
Posts: n/a
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, 01:58 PM
mjs
 
Posts: n/a
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.

If the text were static, I wouldn't need to bottom-justify it. But it's not.
It's dynamic.

"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:g69uh6$8gs$1@forums.macromedia.com...
> Let's examine WHY you need to bottom justify. Can you elaborate, please?



Reply With Quote
  #9 (permalink)  
Old 07-24-2008, 02:04 PM
mjs
 
Posts: n/a
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
  #10 (permalink)  
Old 07-24-2008, 02:05 PM
darrel
 
Posts: n/a
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
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 01:29 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