Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: page font

  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts

    page font

    not sure if this should go in the php sections or not because im using php scripts but its a css problem i guess... how do i set my text font? ive tried it with css and failed..it justdoesnt change my font size so how do i do so properly?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,778
    Thanks
    6
    Thanked 1,021 Times in 994 Posts
    Actually body {font-size: 10pt;} should do it... (just an example value but don't forget a unit behind the number)

  • #3
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan
    Actually body {font-size: 10pt;} should do it... (just an example value but don't forget a unit behind the number)
    just anywhere? or in a .css file

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,338
    Thanks
    29
    Thanked 282 Times in 276 Posts
    In a CSS file or between the <style></style> tags.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #5
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I found out my text is fine...just anything in my table is the same font size...

    I tried putting "before after" in parts fo my table... any point inbetween

    <table cellspacing=8 border=0 cellpadding=0 width=100%>

    and </table>

    is the same font...even with the css thing

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    More selectors

    Without a look at the actual markup and styles it remains a guess, but tables tend to act up sometimes where inheritance is concerned; an easy fix would be to add the td and th element selectors to the example mentioned earlier:
    Code:
    body, th, td {font-size: 10pt;}
    By applying properties specifically to table cells, they should be respected.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #7
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ronaldb66
    Without a look at the actual markup and styles it remains a guess, but tables tend to act up sometimes where inheritance is concerned; an easy fix would be to add the td and th element selectors to the example mentioned earlier:
    Code:
    body, th, td {font-size: 10pt;}
    By applying properties specifically to table cells, they should be respected.

    It worked thanks


  •  

    Posting Permissions

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