lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO


Register


Reply
 
Thread Tools
  #1  
Old 5th Jan 2008, 14:09
Member Group
 
I have started to use CSS more recently but need to know how to implement 'Liquid Design' So people with different browsers, screen resolutions would view the CSS the same way. The easiest way to describe the problem is when you minimise the page none of the elements move. This is the css i have used:
#header {position:absolute; background-image:url(headerbg.png); width:800px; height:150px; margin-left:200px;}

can anyone point out how to make this more liquid?
  #2  
Old 5th Jan 2008, 14:10
Member Group
 
Ok, that didn't work, i dont know how to disable HTML in these forums.
  #3  
Old 5th Jan 2008, 16:10
Donor Group
 
i dont really know what i am talking about but i know that div tags are best for different res and browsers as they move with it unlike app divs
__________________
Im not a Geek!, Im Educated! - www.FossForums.com
__________________

My System: Cewy's wonder macine

Processor(s):
intel core 2 quad q6600 @ 3.2Ghz
Motherboard:
asus p5q deluxe
RAM Memory:
4 gig ocz 1066mhz sli
Graphics Card(s):
nvidia evga 8800 ultra ko
Sound Card:
onboard
Hard Drive(s):
750 gig seagate, 32meg cache
Optical Drive(s):
3 asus dvd writers, lightscribe
Case / PSU:
lian-li armoursuite pc-p60
Cooling:
tuniq tower
Network / Internet:
dual gigabit lan ports
Monitor(s):
24" dell 2408wfp
Operating System(s):
winfail vista 64 | ubuntu/arch linux
  #4  
Old 5th Jan 2008, 17:07
Donor Group
 
div stands for division and that doesn't really have much to do with that code. XHTML was made years back to make it so that all browsers see that same thing. some websites just don't use it, but almost all use XHTML. the CSS doesn't have much to do with it. there is already a universal language for this and it has already been solved and in use. i learned all this in my 1 semester of computer programing :D as for the screen resolutions, try "Ctrl" and "+" /"-"
__________________

My System: Top Secrit

Processor(s):
Core 2 duo E8500 OC @ 4GHz
Motherboard:
GIGABYTE GA-EP45-UD3P (P45)
RAM Memory:
mushkin 4GB DDR2 1066MHz
Graphics Card(s):
GTX280
Sound Card:
onboard (for now)
Hard Drive(s):
WD WD6401AALS 640GB
Optical Drive(s):
Click on link in signature for more
Case / PSU:
CORSAIR CMPSU-750TX (750 WATT)
Cooling:
XIGMATEK HDT-S1283 120mm Rifle
Network / Internet:
DSL medium
Monitor(s):
30 inch 2650x1600 (soon anyway)
Operating System(s):
XP home
  #5  
Old 6th Jan 2008, 05:18
Donor Group
 
I think what he's trying to do is make the website scale across different res. To do this you will need to specify relative sizes in your tables like percent and em rather than pt and px.
__________________

My System: 日夏子

Processor(s):
Core 2 Duo E6400 2.13 -> 3.01ghz
Motherboard:
MSI P6N SLI Platinum LGA 775
RAM Memory:
2GB Patriot Extreme Performance
Graphics Card(s):
PNY 8800GTS 320MB
Sound Card:
Sound Blaster Xtremegamer 7.1
Hard Drive(s):
80GB + 500GB
Optical Drive(s):
2x SATA
Case / PSU:
Antec 900 + 620W Aerocool zeroDBA
Cooling:
4x 120mm Yate-Loon + 200mm top
Network / Internet:
Qwest
Monitor(s):
Dell 22" S2209W (1920x1080)
Operating System(s):
Windows XP + 7
  #6  
Old 7th Jan 2008, 04:58
Member Group
 
Don't use tables for layout. Tables are for tables of data.

Set up a wrapper div. give it a size using percentages - say 80%, and preferable set a min-width and max width. But IE6 doesn't understand min-width and max-width, so you then have to add a conditional statement to the head to set the same min and max for IE6.
Min width is typically set at about 770 - 750pixels, max width at about 1000 - 950 pixels. This works nicely for the vast, vast majority of users.

You might want to center the wrapper div, so normally you add margin:auto to the css for that div.
But IE6 and below don't understand margin:auto. So you then also set text-align:center for the body, then text-align: left for the wrapper div. And that then works perfectly for ALL browsers.


Then inside the wrapper div, set the rest of your layout divs, again with their widths set in percentages (or one at a fixed width and one at a percentage).

The wrapper div then expands and contracts within sensible limits, and the divs inside it are forced to adjust to suit the width of the wrapper.
  #7  
Old 7th Jan 2008, 09:39
Member Group
 
Thanks all of this has stopped it from messing up in different reses and browsers, but everyting still overlaps when the browser isnt maximised fully.
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.