CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/27/2006 10:38:04 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
simmy007
Asp.Net User
Change Font Size11/27/2006 10:38:04 AM

0/0

My client wants to have the ability to click an image on the page and the font size will be increased for all of the text on the page. They then want to be able to switch back to the smaller "original" font size by clicking the same image. I have looked all over and none of the things I have found have worked completely (i.e they do only some of the elements on the page but not all. Anyone have any idea how I can do this???

 Thanks

Simmy     

mattb
Asp.Net User
Re: Change Font Size11/27/2006 4:46:39 PM

0/0

It's hard to say, being that I don't know how you are controlling the font size in your page in the first place (inline styles, linked stylesheet, hard coded).  Off the top of my head, you could do this with JavaScript.  Upon clicking the image, call a JavaScript function that gets a reference to a style(s) in one of your tags that wraps the text and change it to reflect the size you want.  In the JavaScript function you could do a test to see what the current state is and then flip it - to get the toggle effect.

Hope that helps...
Matt Brown
simmy007
Asp.Net User
Re: Change Font Size11/27/2006 6:03:15 PM

0/0

The font size is controlled by CSS stylesheets. I am not very knowledgable in javascript. Do you have any examples or know where I can find to do what you suggest.
mattb
Asp.Net User
Re: Change Font Size11/27/2006 6:11:34 PM

0/0

In your case, you could have multiple stylesheets and swap which one is linked to your page with server side code.

OR

You could use ASP.NET 2.0 themes/skins.

If you look on my website, in the upper right corner there is a theme selector.  I'm storing the theme using ASP.NET's profile provider.  This works for anonymous users too.  I change color schemes but you could do something similar with font size.


Matt Brown
simmy007
Asp.Net User
Re: Change Font Size11/27/2006 7:08:32 PM

0/0

Thanks I'll try that
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Master Visually Dreamweaver CS3 and Flash CS3 Professional: Dreamweaver Cs3 and Flash Cs3 Professional Authors: Sherry Kinkoph, Sherry Kinkoph Gunter, Janet Valade, Pages: 665, Published: 2007
Microsoft Office Excel 2007 Quicksteps: QuickSteps Authors: John Cronan, Pages: 224, Published: 2006
Microsoft Office XP 8-in-1: Office XP 8 in 1 Authors: Joe Habraken, Pages: 921, Published: 2001
Master Visually Excel 2007 Authors: Elaine Marmel, Pages: 775, Published: 2008
Microsoft Office PowerPoint 2007 QuickSteps Authors: Carole Boggs Matthews, Pages: 240, Published: 2006
IBM Cognos 8 Business Intelligence: The Official Guide Authors: Dan Volitich, Pages: 700, Published: 2008
The Unofficial Guide to Microsoft Office Word 2007 Authors: David J. Clark, Pages: 573, Published: 2007
Microsoft Office FrontPage 2003 for Windows: Visual Quickstart Guide Authors: Nolan Hester, Pages: 462, Published: 2003
Learning Web Design: A Beginner's Guide to HTML, Graphics, and Beyond Authors: Jennifer Niederst, Jennifer Niederst Robbins, Pages: 454, Published: 2003
PowerPoint 2007: The Missing Manual Authors: Emily A. Vander Veer, Pages: 469, Published: 2006

Web:
Changing the Font Size The tag is what is used to change the size of a word or words on your page. An ending tag is required to stop the size at the proper place ...
How to Change the Font, Size, and Colors of Desktop Items This article describes how to customize the appearance of your desktop by changing the font, size, and colors of individual Window elements on the desktop .
Manipulating Font Size and Color Now suppose you want to change the size AND the color. To do this, you can use two font tags and remember to close them both, like this: ...
My Yahoo! Blog » You wanted larger fonts, voila! How about changing the font size on incoming emails in Yahoo! Mail Classic. Some of the lines are too small for my old eyes to be able to see them without ...
How to change the font size in Windows Vista | Windows Vista for ... Some people might have problems reading the text of the icons and menus in Windows Vista. The font size can be too small and making it bigger might help.
How to Change the font size of web page text in Internet Explorer ... Learn how to quickly change the font size of text on web pages in Internet Explorer and Firefox browsers.
Change Font Size OnClick JavaScript Font-size change JavaScript code provides a uniform, readily available means of adjusting text size rather than expecting users to find the varying browser ...
Accessibility Features - Change Font Size If you have trouble reading the print on Web pages, you can easily change the size of the font to fit your needs. This page explains how to change your font ...
library.wales.org: Change Font Size Changing Font Size. To change the size of text, use one of these methods, depending on which browser you are using. If you have a mouse wheel, ...
HTML Font Size Codes - How to Change Font Size on MySpace This page outlines all the different HTML font size codes you can use to make text bigger and smaller on your web pages...

Videos:
Dreamweaver Tutorial - Cant change font size in dreamweaver Dreamweaver not letting you change font size? This simple Dreamweaver tutorial will show you WHY dreamweaver won't let you change font sizes and how ...
How To Change Font Size In Publisher Why screencasting? * Easy for end users o Show and tell * Why specifically for teachers? o Far too many can't compete in the workplace partly becau...
How to change your font size to see your desktop better!! This is just a really quick video cause im bored out of my mind!!!
Dreamweaver Tutorial - Cant change font size in dreamweaver Dreamweaver not letting you change font size? This simple Dreamweaver tutorial will show you WHY dreamweaver won't let you change font sizes and how ...
MS Publisher How to Center Text and Change Font Size Why screencasting? * Easy for end users o Show and tell * Why specifically for teachers? o Far too many can't compete in the workplace partly becau...
WordPress Tutorial - More About Changing Fonts & Font Size See http://snurl.com/2a4p1 for tutorial notes. This Intermediate-level WordPress Tutorial is a follow-up to http://mcbuzz.wordpress.com Changing Font...
How to change my internet font size High Quality Video and Guide at http://www.wonderfulsolution.net/how-to-change-your-internet-font-size
Change Font Style, Color, Size and a little bit more! lalalala
How to change the font size in Firefox Just what it says on the tin idiot.
Quick Tip 23 - Keyboard Shortcut - Font Size See it in action as you change the font size! Know right away what size works best.




Search This Site:










create a suggestion feature

content place holder help plz?

javascript + master page problem

skins that use external stylesheet vs in line styles

theme and master page

delete treeview node based on desc

can you load a certain profile

menu navigation

how to execute code in content page when button on master page is clicked

parser error message: could not load type '_prodwhite'.

app_code folder ?

changes made to master page does not reflect on associated pages

working with the corporate theme example (proviided by microsoft)

css examples for menu control

how to use java script confirmation messagebox in the content page ?

asp.net 2.0 treeview nodes centered, not left-aligned

is there a way i can put treeview in a scrollable box and make it stay on the same position after click it? thanks!

capture double click on asp:treeview node

html encoding in the treenode.text property

thought i was doing this correctly!

facing problem in vs2005

datasource tags in pages using masterpages and webparts problem...

menu with sitemapdatasource

seperator in horizontal menu

rebuild sitemap

menu scrolling?

making asp.net menu control as transparent

using relative urls in the menu control

form names and master page

url parameters to hide show content

  Privacy | Contact Us
All Times Are GMT