This is a discussion on "% or px when defineing DIV layouts" within the Web Page Design section. This forum, and the thread "% or px when defineing DIV layouts are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
% or px when defineing DIV layouts
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
% or px when defineing DIV layouts
Hi All,
I just have 1 question (it might turn out to be no more than preference but want to check before i start going down the wrong road). Anyway I was just wondering when working on the layout in XHML/CSS is it best to setup your websites template (eg divs) using % or px, because different browsers break % differently but % then rescale depending on the resolution, didnt know if there was an actual preferred way of doing layouts that I ought to be enlightened with. Any feedback would be appreciated. Cheers Me |
|
|
|
#2
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
Depends, on your layout and your content.
If your layout is largely images based you don't realy have a choice, you have to use px If your layout uses very little images, and has a huge amount of text for content, then %'s are better. Normaly it ends up being a combination of both tho. |
|
#3
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
Well my site will mainly be text on the majority of pages and I would like the site to fit as neatly as possible in multiple resolutions so I think based on your comments I should probably go with % layout, but I do have a header logo which I will need to sit central at the top of the browser, is there a way of setting this to resize based upon the screen resolution?
|
|
#4
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
yes a % will fit to the viewers browser. As for the logo just center align it.
|
|
#5
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
Just for scenario sakes:
What if I wanted a three column website with header, I want the left column to be fixed width (to hold some rather sexy buttons) now I obviously dont want this column to be a % because otherwise as the screen res changes the sides of the button/s will contain empty space. I also want the same for the right column as this will hold links etc that will fit a set standard width. The header is irrelivant, however the middle "content" column, I wish this to be readjusting so that it fits inbetween the two fixed width (pixel sized) left and right columns, but if the user has a larger screen resoultion the middle content column will readjust to grow wider/narrower. My question is: is this possible? Many Thanks Gecko |
|
#6
|
||||
|
||||
|
Re: % or px when defineing DIV layouts
Forgive me for linking elsewhere, but this is too long to explain thoroughly. This tutorial will do ya right: http://css.maxdesign.com.au/floatuto...torial0916.htm
|
|
#7
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
SPOT ON!
Thats what I was after, I started trying to create this last night and got there but there were a few bugs that I couldnt iron out but this tutorial had the fixes i was missing, so thanks for the link, very handy in deed Cheers |
|
#8
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
go herk..!
|
|
#9
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
son of zeus strikes again
|
|
#10
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
err yeah...
|
|
#11
|
|||
|
|||
|
Re: % or px when defineing DIV layouts
lol
|
![]() |
| Tags |
| defineing, div, layouts |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| opinion on layouts | MotorManiac | Website Planning | 9 | Mar 13th, 2008 04:05 |
| XHTML/CSS Layouts - Which is the most intuitive CMS to use ?? | slimboyfatz32 | PHP Forum | 2 | Feb 14th, 2008 16:52 |
| Making Free Layouts | AlexDS | Web Page Design | 9 | Jul 23rd, 2007 13:40 |
| Liquid Layouts and Max-Width | Sporky | Web Page Design | 1 | Jun 4th, 2007 21:33 |
| Testing out CSS/DIV layouts | Moonlilly | Web Page Design | 9 | Apr 3rd, 2007 21:16 |