Digital Point Forums
Western Union

Go Back   Digital Point Forums > Design & Development > HTML & Website Design > CSS
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Oct 11th 2007, 1:02 pm
tayiper's Avatar
tayiper tayiper is offline
Hand of A'dal
 
Join Date: Apr 2006
Location: Ljubljana, Slovenia, Europe
Posts: 417
tayiper is on a distinguished road
Exclamation Floating: can you please explain something to me!!

Okay folks, as a some sort of an addition to the I need something very basic explained about CSS thread that I've opened here on DP forums recently (but never mind it, i.e. now I already understand what I was asking there about), I am asking about floating vs. non-floating in my (imeaning my website's) particular case ...


You see, today I added the "div#content" to my website's index.html page's (well and of course, to all the other pages that have the same layout too) sheet1.css style-sheet file; basically I did it just to wrap the "div" around the main content area, which I thought would be logical thing to do. And surely after testing the code a bit (namely, trying out various values for "padding", "height", "width" properties), the layout is exactly as I intended it to be, and similar to what it was before, please also see below.


Here are the links to the old index-old.html page, and to the old sheet1-old.css style-sheet file.


Now my question is the following: if now "div#menu" is floated to left, and "div#content" floated to right (so that the layout is like I wanted it), how come that even before doing these changes (i.e. with only the menu being wrapped into the "div", and of course, floated to left), the text/main content that I now also wrapped into the "div", was displayed beside the menu anyways (i.e. on its right side), i.e. even without explicitly floating it to the right??!


P.S. - Although it's true that in fact I do *somehow* suspect what might be the reason for this, I'm asking it here anyway just to be completely sure!!


tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs.

Last edited by tayiper; Oct 11th 2007 at 6:50 pm. Reason: a few fixes
Reply With Quote
  #2  
Old Oct 11th 2007, 1:31 pm
mcfox's Avatar
mcfox mcfox is offline
Wind Maker
 
Join Date: Feb 2005
Location: Sunny Scotland
Posts: 6,462
mcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond reputemcfox has a reputation beyond repute
Quote:
Originally Posted by tayiper View Post
Now my question is the following: if now "div#menu" is floated to left, and "div#content" floated to right (so that the layout is like I wanted it), how come that even before doing these changes (i.e. with only the menu being wrapped into the "div", and of course, floated to left), the text/main content that I now also wrapped into the "div", was displayed beside the menu anyways (i.e. on its right side), i.e. even without explicitly floating it to the right??!
It simply slotted into the first available space on the page, which happened to be next to the menu.
__________________
Ben Nevis
Powered by phpld - submit your phpld
Reply With Quote
  #3  
Old Oct 11th 2007, 1:56 pm
tayiper's Avatar
tayiper tayiper is offline
Hand of A'dal
 
Join Date: Apr 2006
Location: Ljubljana, Slovenia, Europe
Posts: 417
tayiper is on a distinguished road
Quote:
Originally Posted by mcfox View Post
It simply slotted into the first available space on the page, which happened to be next to the menu.
Ahhhh thanks much mcfox, so it is pretty much as I've speculated/suspected ...


tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs.
Reply With Quote
Reply

Bookmarks

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
My floats floating off help :) papa_face CSS 1 Oct 6th 2007 3:04 pm
Floating ad creator newhen Buy, Sell or Trade 0 Apr 28th 2007 1:25 pm
Floating Tap MySpace General Chat 5 Sep 19th 2006 5:29 am
Floating left and right astralis CSS 1 Feb 22nd 2006 10:27 pm
Floating Ads? cmpolis Affiliate Programs 0 Jan 16th 2006 10:30 am


All times are GMT -8. The time now is 10:57 am.