Webmaster Forum

Sponsored Reviews   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Reply
 
LinkBack Thread Tools Display Modes
Old 04-12-2004, 01:44 PM   #1 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
CSS positioning help

I have been trying to get things to work for ages in css, but things can get very hard. I have a layout 750 pixels wide with numerous items on the same row (all in different div tags), absolute positioning will be stupid (I think) as it will cause things to appear in different places on different resolutions, and surely I just can't float everything on the left.

Are there any tips for making fixed size css pages with numerous div tags on one row?
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 04-12-2004, 02:24 PM   #2 (permalink)
v7n Mentor
 
greg's Avatar
 
Join Date: 10-13-03
Location: Little Rock
Posts: 2,586
iTrader: 0 / 0%
Latest Blog:
None

greg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to allgreg is a name known to all
Send a message via MSN to greg
absolute positioning will not cause things to appear in different places. it will all be the same place.

the very top left corner of yoru screen is 0,0, and it goes from there. the only thing different in resolutions is that things are more compacted. so because of that it will show up exactly like non-expandable tables. You can also make css div elastic if you wish.
greg is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-13-2004, 02:12 AM   #3 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Yeah, I know. I forgot to say that I want to centre it in the screen. That is why the left and right pixel numbers will vary with different resolutions.

I did try making it elastic, but the results with my template didn't work very well, so I've decided a fixed layout will be better for it.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-13-2004, 05:54 AM   #4 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
You could put a 750 px div around around the page and center it. Put everything inside of that.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-13-2004, 06:26 AM   #5 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Thats the thing though, I need to position the items inside of that. Is there a tag that can do like left of the so and so.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-13-2004, 07:40 AM   #6 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
OK, I'm trying this http://www.quirksmode.org/css/centering.html as it seems to work.

Basically, it involves placing the site in a table tag. I didn't want to have to do this but due to IE being <insert word here> I have to.

I'll report back to you, on whether I can make it work or not.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-13-2004, 07:47 AM   #7 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Wait. You are putting the site inside a table to center it for IE? You don't have to do that.
If you put the whole thing iside of an extra <div> tag you can put a text-align: center on that <div> with a width of 100%.

The inside <div> will then be centered.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-13-2004, 08:11 AM   #8 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Nice it worked. Thanks for that Jazzee.

If it works, this will be my first proper css positioned design.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-13-2004, 08:11 AM   #9 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Cool
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-15-2004, 07:44 AM   #10 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 275
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
One method that I use is to position an element absolutely from the left and the right.

So, you could make something appear to be centered, but it's really just stuck a certain amount of pixels from the sides. So, not only is it centered, but you have a lot of control on exactly how it will look.

You can even make the element be farther from one side than the other this way.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-15-2004, 07:57 AM   #11 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Distorted - That will look different on different resolutions, though, no?
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-15-2004, 08:52 AM   #12 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 275
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
That's the point. It will make it completely fluid, while still being a fixed number of pixels from the sides and/or being centered.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-15-2004, 09:30 AM   #13 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Don't want it to be fluid though.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-25-2004, 04:29 PM   #14 (permalink)
Crap Bag
 
Join Date: 10-12-03
Posts: 1,727
iTrader: 0 / 0%
Latest Blog:
None

PhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crap
One site I checked out put the whole content in one big div. This big div he centered using 'auto' as value for both left and right margins. It seems to work fine. Go figure.
PhilC is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-25-2004, 04:30 PM   #15 (permalink)
Crap Bag
 
Join Date: 10-12-03
Posts: 1,727
iTrader: 0 / 0%
Latest Blog:
None

PhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crapPhilC is web crap
Ofcourse they also set a fixed width too ...
PhilC is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-25-2004, 06:25 PM   #16 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Quote:
Originally Posted by sfxmystica
One site I checked out put the whole content in one big div. This big div he centered using 'auto' as value for both left and right margins. It seems to work fine. Go figure.
I don't think margin: auto works for IE.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-03-2004, 01:10 PM   #17 (permalink)
Inactive
 
Join Date: 12-27-03
Location: Russia, Nizhny Novgorod
Posts: 116
iTrader: 0 / 0%
Latest Blog:
None

Vulko is liked by many
Send a message via ICQ to Vulko
I'm not sure in syntax...
<div style="position: absolute 50% 50%">
Vulko is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative positioning with CSS lajones3 Coding Forum 4 02-01-2007 04:39 AM
css help in element positioning. funguru Coding Forum 5 11-22-2006 08:37 PM
CSS positioning vs. table positioning downtroden Coding Forum 2 07-19-2004 11:40 AM
***Help: About Positioning*** pcmtv Marketing Forum 3 04-26-2004 10:40 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:46 PM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.