Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2005, 11:18 AM
WebProWorld New Member
 

Join Date: Apr 2004
Location: Melbourne Australia
Posts: 10
Zacharicus RepRank 0
Default How to: Enlarge text in a specific css class

What's the best way to setup a button on a website that tells spesific css classes to enlarge the font size by a certain percentage?

Basically, on this html/css site, the user should be able to enlarge the font sizes, but not all, only the main content texts, not all the others, so I need to specify certain classes.

Any help would be appreciated. Thanks.
__________________
Roger, Minds of Intelligence.
Reply With Quote
  #2 (permalink)  
Old 02-15-2005, 12:45 AM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

One way can be...

hmm you can use php or some other language to do this..

it can be done like this...

Add css code in the page

give conditions like this

<?php
if ($option == "1")
{
$set_size = "12px";
}

if ($option == "2")
{
$set_size = "14px";
}

if ($option == "3")
{
$set_size = "16px";
}
else
{
$set_size = "10px";
}
?>

<style>
.content {font-size:<?php $set_size; ?>;}
</style>

now pass option value from the query string first and then you can store it in cookie so you dont needs to pass it from query string all the time..

I hope you got what i said..

Regards
Deep
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0