Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Centering a webpage - Liquid
Old 03-30-2008, 07:04 PM Centering a webpage - Liquid
Novice Talker

Posts: 11
Name: Pritesh Madlani
Trades: 0
Hi,

I am building a website and would like to make it liquid. The website address is:

http://www.cse.dmu.ac.uk/~p04283218/mainframe9/

Can anyone point me in the right direction as to how I would do this please.

Thanks.
pritmadlani is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-30-2008, 07:55 PM Re: Centering a webpage - Liquid
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Hope this is what you are looking for
http://matthewjamestaylor.com/blog/p...-left-menu.htm

If not, let me know and I will try to find what you are looking for.
joder is offline
Reply With Quote
View Public Profile
 
Old 03-30-2008, 09:29 PM Re: Centering a webpage - Liquid
Novice Talker

Posts: 11
Name: Pritesh Madlani
Trades: 0
Thank you for your reply - I will definitely try that coding tomorrow. If it doesn't work - I will get back to you.

Thanks again - appreciate it.
pritmadlani is offline
Reply With Quote
View Public Profile
 
Old 03-31-2008, 08:24 AM Re: Centering a webpage - Liquid
Experienced Talker

Posts: 31
Name: laredo
Trades: 0
To center a website, u should use cellpadding or The margin button in the page properties. it should probably be the solution to the problem.
larry007 is offline
Reply With Quote
View Public Profile
 
Old 03-31-2008, 09:42 AM Re: Centering a webpage - Liquid
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Or maybe you should try READING THE STICKIES ??
http://www.webmaster-talk.com/css-fo...r-website.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-31-2008, 10:54 AM Re: Centering a webpage - Liquid
Banned

Posts: 81
Location: kavoir.com
Trades: 0
How about this:

HTML:
<div id="wrapper">
</div>
CSS:
body {
text-align:center;
}
#wrapper {
text-align:left;
margin:0 auto;
width:100%;
}
yangyang is offline
Reply With Quote
View Public Profile Visit yangyang's homepage!
 
Old 03-31-2008, 01:23 PM Re: Centering a webpage - Liquid
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I fell asleep one night after doing coding, and woke up dreaming about centered, flexible, rounded corner wrapper windows, that could hold multiple items. Here is what I came up with: http://wayfarerweb.com/mockups/ebay_ui/ You are free to study my layout, if you wish. I believe there is one less layer of extra markup than is normally required for these type of layouts. I'm sure this is more extensive than what you need, but it is still an interesting study
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 03-31-2008 at 01:25 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-31-2008, 01:35 PM Re: Centering a webpage - Liquid
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
A fluid layout is more than centering.

Lackofheart: No good using deprecated tags and CSS is for layout.
joder is offline
Reply With Quote
View Public Profile
 
Old 03-31-2008, 04:40 PM Re: Centering a webpage - Liquid
Junior Talker

Posts: 1
Trades: 0
place everythign insde of a container DIV, specifiy it's width to 100%; or even easier Display: Block;

follow this with placing margin attributes in the body tag something like

Code:
<body><div id="container">website layout and content</div></body>
Code:
body { margin: 20px 15px 10px 15px; }
#container { display: block; width: 100%; }
__________________
A beautiful selection of
Please login or register to view this content. Registration is FREE
.
JamesStern is offline
Reply With Quote
View Public Profile
 
Old 03-31-2008, 09:11 PM Re: Centering a webpage - Liquid
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
place everythign insde of a container DIV, specifiy it's width to 100%; or even easier Display: Block;
There is no point in setting display:block, a div IS a already a block-level element !

The width 100% isn't really necessary either, since the div will take up ALL the width if you don't specify something less than 100%.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-01-2008, 12:46 AM Re: Centering a webpage - Liquid
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
There is no point in setting display:block, a div IS a already a block-level element !
lol...
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-01-2008, 05:38 AM Re: Centering a webpage - Liquid
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
in it's initial form, the div is a block element but it can be set as display:inline and display:block is just an assurance that it will be SURE a block. But, why 100%?

to center a div I make something like this :

.main_div {
width:980px; margin:0 auto; background-color:#09f; /* */
}

edit // a fluid layout means you don't need a div... the entire page is yours but... this is not to nice for the design. You can use floats for columns
__________________
you can
Please login or register to view this content. Registration is FREE

Last edited by vectorialpx; 04-01-2008 at 05:41 AM..
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 04-01-2008, 10:48 AM Re: Centering a webpage - Liquid
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Quote:
Originally Posted by vectorialpx View Post
edit // a fluid layout means you don't need a div... the entire page is yours but... this is not to nice for the design. You can use floats for columns
That is incorrect. A fluid layout is one that doesn't used fixed width. They resize with the browser or window size.
joder is offline
Reply With Quote
View Public Profile
 
Old 04-01-2008, 12:56 PM Re: Centering a webpage - Liquid
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Here is an example of a a liquid (or fluid) layout: http://www.ojos-de-dios.com. Resize your browser's window to see how it reacts. Liquid layouts have a reputation for being somewhat more difficult than fix-width layouts, and suffer from some limitations, mainly IE6's lack of support for the min-width property. However, they are still very useful.

Centering a liquid layout is mostly the same as centering one of fixed-width.

May we move on to the next subject?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-01-2008, 02:17 PM Re: Centering a webpage - Liquid
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
in it's initial form, the div is a block element but it can be set as display:inline and display:block is just an assurance that it will be SURE a block.
If there is nothing in the CSS to set it to an inline element, then setting it to display:block is just extraneous and unnecessary code.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-01-2008, 07:20 PM Re: Centering a webpage - Liquid
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
Quote:
is just extraneous and unnecessary code.
yes... I must agree but it is nothing incorrect...
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 04-02-2008, 10:24 AM Re: Centering a webpage - Liquid
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I didn't say it was incorrect, I said it was POINTLESS, and also NOT the solution to the OP's problem.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Centering a webpage - Liquid
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.67728 seconds with 12 queries