Results 1 to 12 of 12
  1. #1
    ABW Ambassador Vrindavan's Avatar
    Join Date
    February 25th, 2003
    Posts
    1,902
    Question how to edit this css code to adjust the font size ?
    how to edit this css code to adjust the font size ?
    for example, I wish to make it to display " Vedana 12 "

    --------------------

    <style type="text/css">
    .coupon_feed_js_item_title {font-size: 90%; padding: 10px 0 10px 0;}
    .coupon_feed_js_item_title:hover {font-size: 90%; padding: 10px 0 10px 0;}
    .coupon_feed_js_item_description {font-size: 90%;}
    .cf_image {padding: 2px 2px 2px 0;}
    .cf_description_text {font-size: 90%;}
    .cf_expiration_label {font-size: 90%; font-weight: 600;}
    .cf_expiration_text {font-size: 80%;}
    </style>
    <script type="text/javascript" src="http://www.avantlink.com/coupons/coupon_feed.php?cfi=19917&amp;pw=212"></script>

    ---------------

    Thanks for help

  2. #2
    Influencer Marketing GravityFed's Avatar
    Join Date
    January 18th, 2005
    Location
    Ithaca & Park City
    Posts
    3,338
    This is a general CSS question, but let me see if I can help (although I am certainly no CSS expert!)

    Not sure from your post/question exactly what font element you want to change, but for example if you wanted to change the description font to verdana 12 pt it would be..

    .cf_description_text {font-size: 12pt; font-family: Verdana"}

    You could also just check the multitude of CSS tutorials/references listed in Google for a CSS search.

    GM

  3. #3
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    <style type="text/css">
    .coupon_feed_js_item_title {font-family: Verdana 12pt; padding: 10px 0 10px 0;}
    .coupon_feed_js_item_title:hover {font-family: Verdana 12pt; padding: 10px 0 10px 0;}
    .coupon_feed_js_item_description {font-family: Verdana 12pt;}
    .cf_image {padding: 2px 2px 2px 0;}
    .cf_description_text {font-family: Verdana 12pt;}
    .cf_expiration_label {font-family: Verdana 12pt; font-weight: bold;}
    .cf_expiration_text {font-family: Verdana 12pt;}
    </style>
    <script type="text/javascript" src="http://www.avantlink.com/coupons/coupon_feed.php?cfi=19917&amp;pw=212"></script>

  4. #4
    ABW Ambassador Vrindavan's Avatar
    Join Date
    February 25th, 2003
    Posts
    1,902
    I learned something new today.

    Thanks 2busy and Gary

  5. #5
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    I started to add that this may result in needing a wider space or may not line up with other columns, it is not a good idea to use css in snippets and a lot of that css can be made shorter by adding it to the {body} tag depending on where this gets displayed.

    I agree with Gary that you would be better off to spend a little time at w3schools to pick up a little bit of css on your own. A lesson like this is about 10-15 minutes, tops.
    Good luck.

  6. #6
    ABW Ambassador Vrindavan's Avatar
    Join Date
    February 25th, 2003
    Posts
    1,902
    >> it is not a good idea to use css in snippets

    oh

    i can display the whole thing just by the following code, simple then.

    <script type="text/javascript" src="http://www.avantlink.com/coupons/coupon_feed.php?cfi=19917&amp;pw=212"></script>

  7. #7
    ABW Ambassador Vrindavan's Avatar
    Join Date
    February 25th, 2003
    Posts
    1,902
    >> it is not a good idea to use css in snippets

    if not css, what is the better way then ?

  8. #8
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    There is nothing wrong with using the css as shown. (If you don't have any other conflicting stylesheets where the script will be displayed.)
    That is what I meant by using css in snippets. If the stylesheet for that page has set line height at 11pt for the page, it will quite possibly affect setting the font size at 12pt. If the script displays in a column with a fixed width, it can stretch that column beyond where you want it when you change the font size. If you are using the script in WP consider all the css, not just one part.

  9. #9
    Newbie
    Join Date
    November 4th, 2010
    Posts
    15
    If your using the stock CSS for WP, try the FCKeditor.... it fixed css issues for me and no problem playing around with text etc. One of my sites was getting all screwy doing anything with the regular CSS, replaced it and didn't have any trouble. Seems to ignore the theme limits also, as i could enlarge text on regular css only to have it look out of wack and spread out or clumped together, which didn't happen with FCKeditor. Also the site just has a way sharper look to it with it also.

  10. #10
    ABW Ambassador Vrindavan's Avatar
    Join Date
    February 25th, 2003
    Posts
    1,902
    >> FCKeditor

    is it free to use or need to pay for it ?

  11. #11
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    If you need a free css editor, download PSPad editor, it includes TopStyleLite free css editor. It has many very useful features.

  12. #12
    Newbie
    Join Date
    November 4th, 2010
    Posts
    15
    Quote Originally Posted by Vrindavan View Post
    >> FCKeditor

    is it free to use or need to pay for it ?
    No it's free and awesome, my site looks so much better vs the regular wp css. I don't know why wp comes with that crappy stock one.

    WordPress › Dean&#039;s FCKEditor For WordPress « WordPress Plugins
    Last edited by BackLinkPro; February 23rd, 2011 at 03:08 PM.

  13. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Large monitors- font size
    By mailman in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: October 30th, 2009, 09:15 AM
  2. Change Font Size in Adsense Ads?
    By Uncle Rico in forum Search Engine Optimization
    Replies: 2
    Last Post: April 26th, 2008, 10:16 PM
  3. Font Size = Invisible?!
    By Leader in forum Midnight Cafe'
    Replies: 6
    Last Post: August 30th, 2004, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •