astralaaron Posted March 31, 2007 Share Posted March 31, 2007 Can someone explain to me the difference between a div, and a floating div?and maybe post up a website that I can see the css code to make a floating div.thanks-AstralAaron Link to comment Share on other sites More sharing options...
real_illusions Posted March 31, 2007 Share Posted March 31, 2007 floating divs are used in mainly coloumn layouts, where you have a left and a right coloumn, which are either in a fluid design and stretch the whole page width no matter what size browser. Or, (the way on my site - see siggie), they float to the left and the right inside an outer div, which is auto margined, so it all stays in the centre of the page.The other type of divs are to do with positioning, and you can choose between:absolute, relative, inherit and static. Although the first 2 are the most commonly used (that i'm aware of).Absoulte positioning is positioned from the top left corner of the browser. Relative is relative to whatever the div is inside, again top left corner.Hope that helps! Link to comment Share on other sites More sharing options...
astralaaron Posted April 1, 2007 Author Share Posted April 1, 2007 floating divs are used in mainly coloumn layouts, where you have a left and a right coloumn, which are either in a fluid design and stretch the whole page width no matter what size browser. Or, (the way on my site - see siggie), they float to the left and the right inside an outer div, which is auto margined, so it all stays in the centre of the page.The other type of divs are to do with positioning, and you can choose between:absolute, relative, inherit and static. Although the first 2 are the most commonly used (that i'm aware of).Absoulte positioning is positioned from the top left corner of the browser. Relative is relative to whatever the div is inside, again top left corner.Hope that helps!yes That Helped! thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now