FORUMS: list search recent posts

CSS Positioning...is this method good or bad? why? (Curtis?)

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brian of Influx media
CSS Positioning...is this method good or bad? why? (Curtis?)
on Sep 30, 2005 at 2:03:23 pm

Hello,

I have been messing around with CSS-P lately and was wondering how to center content completely in the middle of a page no matter what size the browser window may be. I found this method:

http://www.joe2torials.com/css/css_horizontal_and_vertical_centering.php

Is this a "valid" way to do this? IF I made the container box lets say, 750 x 400 and then absolutely positioned some
tags in that box, would that work or not?

I plan on developing a site like this, but if it will not work, i'll use the good old tables for a layout... Im curious.. Curtis? Any suggestions?



Brian Artka

http://www.influx-media.com
Digital Video/Digital Media Specialist
Video Production/Web Design


Return to posts index

Curtis Thompson
Re: CSS Positioning...is this method good or bad? why? (Curtis?)
on Oct 2, 2005 at 1:02:56 am

hello...

that certainly works great - the only caveat might be when you have plain text content in a box because you might not be able to guarantee the height, meaning you couldn't reliably do the division to get it perfectly vertically centered...

but outside of that, this is a very cool way to do centering - i've always done it the old table way, but this is much easier...

hope that helps!

sitruc


Return to posts index

Brian of Influx media
Re: CSS Positioning...is this method good or bad? why? (Curtis?)
on Oct 2, 2005 at 2:35:18 am

Thanks for the reply. Now, If I do use this to center the page, what about if I want to position lets say some slices from photoshop using the ABSOLUTE property in that container.

ie.

I have 5 jpg files and one gif file (a logo), and I want to make 5 DIV's that are absolutely positioned in the DIV that is centered on the page as in the example link I gave you. Everything I position inside the main DIV will be centered no matter what the browser size is. Is this a bad practice? I have been reading alot of negative things on using ABSOLUTE positioning in this way. If its a bad practice, I will stick with tables for the layout portion for now. I am in that "Wanting to position with CSS mood" but I dont want to sacrifice alot of other things while doing it. I like the sites on http://www.csszengarden.com and how they are designed and set up to float with the page, or expand on one side, but most of my designs are not like that. I like to "center" my content in whatever kind of frames I use at the moment. Its either going to be the old fashioned way (tables) or the new wave way (CSS-P)... I cant decide =)

Wow.. sorry for the ramble. lolo

B



Brian Artka

http://www.influx-media.com
Digital Video/Digital Media Specialist
Video Production/Web Design


Return to posts index


brian of influx media
Re: CSS Positioning...is this method good or bad? why? (Curtis?)
on Oct 22, 2005 at 4:15:36 pm

http://www.joe2torials.com/view_tutorial.php?view=37

is where the example has been moved to


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]