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
Horizontal/Vertical centering correct?
Old 08-18-2005, 04:52 PM Horizontal/Vertical centering correct?
Volt's Avatar
Novice Talker

Posts: 6
Location: Ontario Canada
Trades: 0
Yesterday I started doing layouts with floating divs & wanted to confirm i've done it right. At first I did div {display: block; float: left} but I found that my website wasn't centering horizontally even though I had it in a container to do so. After fiddling around I thought maybe because I told all divs to float left that maybe my container despite it's styles was being affected to. So I removed float left from div and just put it in each div I wanted to float left. It SEEMS to have fixed the problem but I wanted you guys to tell me if I did it right. I added a black border to my container div and I noticed it doesn't even go around my layout which I thought it was supposed to?

http://home.cogeco.ca/~kjervis/centertest/
http://home.cogeco.ca/~kjervis/centertest/custom.css

I was also wondering if their's a sure fire method of centering vertically for all browsers?

Last edited by Volt; 08-18-2005 at 06:49 PM..
Volt is offline
Reply With Quote
View Public Profile Visit Volt's homepage!
 
 
Register now for full access!
Old 08-23-2005, 11:48 AM
kate.SM's Avatar
Average Talker

Posts: 22
Location: England
Trades: 0
'Page not found'

kate.SM is offline
Reply With Quote
View Public Profile Visit kate.SM's homepage!
 
Reply     « Reply to Horizontal/Vertical centering correct?
 

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 0.12062 seconds with 12 queries