HighDots Forums  

Centering DIV vertically?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Centering DIV vertically? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Grosz
 
Posts: n/a

Default Centering DIV vertically? - 08-01-2005 , 05:54 PM






I have a img in a div that is centered within the div horiz., but I need
it centered in the div vertically as well.

I have it set up as a block, gave the block a width and height, but I'm
not seeing anything to center it.

Thanks,
Steve

Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Centering DIV vertically? - 08-01-2005 , 06:35 PM






Will the container div flex? If not, then you will have to do it manually
by taking half the remaining distance and distributing it evenly to top and
bottom margin. If it does flex, then you are outta luck.... But now that I
think about it, I can't come up with a good scenario where you would have a
vertically centering div in a vertically flexing div.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Steve Grosz" <boise_bound (AT) hotmail (DOT) com> wrote

Quote:
I have a img in a div that is centered within the div horiz., but I need it
centered in the div vertically as well.

I have it set up as a block, gave the block a width and height, but I'm
not seeing anything to center it.

Thanks,
Steve



Reply With Quote
  #3  
Old   
Bradley Williams
 
Posts: n/a

Default Re: Centering DIV vertically? - 08-01-2005 , 08:44 PM



Hmm, this is an interesting problem. I don't know what your page looks like though.

I vertically and horizontally centered an image though. Check out the code of:

www.braveworks.org

Reply With Quote
  #4  
Old   
rboone79
 
Posts: n/a

Default Re: Centering DIV vertically? - 09-12-2005 , 02:26 PM



Yeah, that Braveworks page crashed my IE5 Mac.

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.