![]() |
| |||||||
| |
![]() |
| | Thread Tools |
|
#1
| ||||
| ||||
| 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: [SIZE=2]#[/SIZE][SIZE=2]header[/SIZE][SIZE=2] {position:[/SIZE][SIZE=2]absolute[/SIZE][SIZE=2]; background-image:[/SIZE][SIZE=2]url[/SIZE][SIZE=2]([/SIZE][SIZE=2]headerbg[/SIZE][SIZE=2].[/SIZE][SIZE=2]png[/SIZE][SIZE=2]); width:[/SIZE][SIZE=2]800[/SIZE][SIZE=2]px[/SIZE][SIZE=2]; height:[/SIZE][SIZE=2]150[/SIZE][SIZE=2]px[/SIZE][SIZE=2]; margin-left:[/SIZE][SIZE=2]200[/SIZE][SIZE=2]px[/SIZE][SIZE=2];} [/SIZE] [SIZE=2]can anyone point out how to make this more liquid? [/SIZE] |
| |
|
#2
| ||||
| ||||
| Ok, that didn't work, i dont know how to disable HTML in these forums. ![]() |
|
#3
| ||||||||||||
| ||||||||||||
| 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
__________________
My System: Cewy's wonder macine
Want your system info in your signature? |
|
#4
| ||||||||||||
| ||||||||||||
| 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: cheesepuff
Want your system info in your signature? Last edited by cheesepuff : 05-01-2008 at 11:08 PM. |
|
#5
| ||||||||||||
| ||||||||||||
| 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: 日夏子 (Hikako)
Want your system info in your signature? |
|
#6
| ||||
| ||||
| 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. Last edited by dr john : 07-01-2008 at 11:00 AM. |
![]() |
| Thread Tools | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Forum Design | kanoakavirus | Community News & Chat | 61 | 23-05-2008 04:36 PM |
| Liquid Cooling Installation help! | Compasky | General Hardware Chat | 2 | 21-01-2008 10:39 PM |
| liquid cooled psu | xactly | Cases & Power Supplies | 3 | 03-09-2007 04:03 PM |
| how can i design a web site?.? | musavunduka | Web Design, Hosting & SEO | 17 | 05-07-2007 05:44 AM |
| Liquid Cooling | emmaonline | General Hardware Chat | 2 | 17-03-2007 09:51 PM |
| Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc. |