Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    13
    Member #
    11991
    I have a left-floated div (named "div.figure") and I want to make the text inside smaller (font-size:small)

    css file: www.behan-law.com/common/css/default.css
    page: www.behan-law.com/advantage.php

    In the css file, scroll all the way down to see the figure div and its element properties. It seems to only be working on the <li> tags...not sure why it doesn't work on the <p>, <h2> tags.

    any insight?

    Thanks!

  2.  

  3. #2
    Senior Member Stylise's Avatar
    Join Date
    Jul 2005
    Location
    Mount Martha, Australia
    Posts
    229
    Member #
    10679
    try add the following to the css file:

    table { font-size: 100%; }

    cause font size is inherited and tables mess up font sizes it's prolly why you're having this problem.

  4. #3
    Junior Member
    Join Date
    Nov 2005
    Posts
    13
    Member #
    11991
    nope, added it above the div.figure and still no luck!
    darn it, I thought you may have had it!

  5. #4
    Senior Member igeek's Avatar
    Join Date
    Oct 2005
    Posts
    202
    Member #
    11644
    looks like the div called figure is inside the maincontent..
    div figure is probably inheriting the css atributes from
    main content .

    also using css selectors in html is a no no.. :dead:

    maybe you could try using the !important to overide..

    Code:
    div.figure p {
    	font-size:small !important;
    }
    div.figure h2 {
    	font-size:small !important;
    }
    div.figure li {
    	font-size:small !important;
    }

  6. #5
    Junior Member
    Join Date
    Nov 2005
    Posts
    13
    Member #
    11991
    using css selectors in html is a no no...?

    can you explain this a little more:
    using css selectors in html is a no no...?
    I guess I am more "new here" than I thought....

    Thanks!

  7. #6
    Senior Member igeek's Avatar
    Join Date
    Oct 2005
    Posts
    202
    Member #
    11644
    sure..

    try not to use css selectors ..
    IE.. ID="myID" Class="myClass"
    in html elements like TD and TR tags..unless they only specify font attributes..

    it is ok to use tables in css layouts but you should do it the html way...but try to keep it to a minimum.

    IE.. <TABLE border="1" bgcolor="#ffffff" bordercolor="#000000"
    cellpadding="2" cellspacing="0"><tr><td rowspan="3" colspan="2">
    blah blah blah..</td></tr>....

    try not to nest whenever possible.
    use XHTML the way its suppose to be used..

    hope this helps.. good luck..

  8. #7
    Junior Member
    Join Date
    Nov 2005
    Posts
    13
    Member #
    11991
    interesting....
    I will see if I can eliminate those....

    thanks for all the pointers!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:44 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com