![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi, I'm trying to create a pure CSS layout using DIVs. I have three DIVs (in one column) down the left hand side of my page, with a ten pixel vertical gap between each of them (the content is on the right). At the moment these DIVs are all using absolute positioning, with dimensions and co-ordinates specified in pixels. How can I make it so that if the user increases the font size the DIVs enlarge to accommodate the content but still maintain the ten pixel gap? Thanks, John |
#2
| |||
| |||
|
|
Matt Rushton wrote: http://www.havant.ac.uk/adultlearning clicking the textsize links at the bottom of the page causes the asp page to insert the size querystring into a variable which is used in an inline style to set the font-size of the body tag. I've seen a lot of this kind of thing lately. I wish people would stop these attempts at being "helpful". First, if you set reasonable font sizes to begin with, the need for the user to change the size at all would be lessened, if not eliminated. Second, the little trick at this site is only good for the current page. Follow any link and the text reverts to the original (sub-optimal) size, so each page has to be re-adjusted. ish. Thirdly, the user's browser is plenty capable of making text size changes without any added trips to the server. If you want to do something really helpful, then why not link to a page that teaches the user how to adjust the text size in their browser? That's something they can use almost anywhere, not just at this site. As is, the body text size is far too small for my reading pleasure, I imagine it's too small for lots of other folks, too. You may have set a 100% font size on the body tag within the page, but the stylesheet is bumping that down to 70%. Pretty much defeats the purpose, eh? |
#3
| |||
| |||
|
|
clicking the textsize links at the bottom of the page causes the asp page to insert the size querystring into a variable which is used in an inline style to set the font-size of the body tag. |
#4
| |||||
| |||||
|
|
kchayka <kcha-ns-yka (AT) sihope (DOT) com> wrote Matt Rushton wrote: http://www.havant.ac.uk/adultlearning As is, the body text size is far too small for my reading pleasure, I imagine it's too small for lots of other folks, too. You may have set a 100% font size on the body tag within the page, but the stylesheet is bumping that down to 70%. Pretty much defeats the purpose, eh? a reasonable font size assumes all users have the same size monitor. |
|
with reguard your point about the size change not being persistant accross the pages, my testing suggests otherwise. ive tested in IE 6, mozilla 1.4, opera 7.11, and firebird and the text size is permanent until reset. the page uses cookies to store the setting or if these are not available, a session variable which should stay valid for 20mins. |
|
thank you for your comments tho, i have now reset the 100% font size to 100% and increased the side bar size a little as well. |
The sidebar is|
the intention of my post was'nt that people should copy my asp menu but that by setting the body tag font size and then using % for text size and ems for layout spacing, a truly fluid layout can be created. |

|
can you also let me have a list of other sites which provide a text size menu so i can see how others have approached this issue. |
![]() |
| Thread Tools | |
| Display Modes | |
| |