Text Resizing (Full Version)

All Forums >> [Web Development] >> Accessibility



Message


Nicole -> Text Resizing (12/9/2005 1:11:38)

I'd like to add text-resizing buttons to the top of a site I'm creating similar to this one that i've found on this brilliant site!

http://www.ddeaf.org.uk/

I'm not very script-friendly and have viewed the source of that page and am kind of confused about how she did it. Is it done with a different style sheet for each text-size?

Nicole




Tailslide -> RE: Text Resizing (12/9/2005 2:59:48)

Yes and a javascript switch.

Edit: here's the original article (I think Womble used the Paul Sowden version - couldn't swear to it): http://www.alistapart.com/articles/alternate/

There's several different versions on Alistapart - just search for switcher.




Nicole -> RE: Text Resizing (12/9/2005 3:12:55)

Okay, thanks!

This is new territory for me though. I can do the style sheets okay, but "Javascript Switch", you've got me there. Will look around and see what info I can find.

Nicole




Tailslide -> RE: Text Resizing (12/9/2005 4:48:00)

It's all in the Alistapart article. Actually the JS switch is the easy bit. Figuring out the stylesheets and their precedence can be a real pain.




womble -> RE: Text Resizing (12/9/2005 7:46:26)

quote:

I'd like to add text-resizing buttons to the top of a site I'm creating similar to this one that i've found on this brilliant site!

http://www.ddeaf.org.uk/


[:)] Hmmm, looks like a nice site - I wonder who made it? [:D]

Yep, Tail's right, it was the Paul Sowden one I used. For some reason known only to the web design gods though it was a %*!$* to get working consistently - seen it working fine on other sites though (required an extra bit of js to get it to play nice for me though). Part of the problem, as Tail said was figuring out the precedence - once I'd figured that out it wasn't so bad. The extra js I used (assisted by Tail) is there to make sure it loads and unloads right when you switch pages becuase for some reason that site hates me and has a mind of its own.

Like Tail says, there's a few on Alistapart, including a php one that looks simpler and is server side so in theory should cause less problems which I may take another look at next time...

/is hoping current client doesn't want switcher built in - will have to try and disuade her from the idea when we meet this afternoon [:D]

It was a really useful learning experience though, and one I might repeat when I'm feeling brave enough :lol




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875