ive got divs strewn thoughout my page with stuff like navigation, positioning, etc. in them that are resulting in different lines of the page being different widths
is it possible to form some method of giving a div tag a variable width based on where the div lies
i need this done in css as it is a section div and can be called multiple times on one page so i dont want to have to give each one a fixed width every time i use one
iev tried using width:100%; but this wont do as all the nav/positioning divs are required to float so they can be positioned correctly
i.e.
at the top of the page the section div needs to be 525px half way doen it needs to be only 450px and at the bottom of the page it needs to be 600px, obviously as content changes, the position of the div will also change so i cant hard-code any fixed size
if what im after isnt possible then it doesnt matter as im using spans and sorting the widths using padding, but im not happy with as all the section divs are different sizes
thanks for any help
I can't be bothered to have a sig!
is it possible to form some method of giving a div tag a variable width based on where the div lies
i need this done in css as it is a section div and can be called multiple times on one page so i dont want to have to give each one a fixed width every time i use one
iev tried using width:100%; but this wont do as all the nav/positioning divs are required to float so they can be positioned correctly
i.e.
at the top of the page the section div needs to be 525px half way doen it needs to be only 450px and at the bottom of the page it needs to be 600px, obviously as content changes, the position of the div will also change so i cant hard-code any fixed size
if what im after isnt possible then it doesnt matter as im using spans and sorting the widths using padding, but im not happy with as all the section divs are different sizes
thanks for any help
I can't be bothered to have a sig!