SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wayne, actually the only problem I had was that the text size attribute in the body element is not recognized at all. No matter what values I use, the body font stays at the default size. The paragraphs look fine. Sorry if I didn't phrase the question correctly the first time.

    This site will be Intranet only for IE 4 and up, so at this point I am not worried that much about Netscape users. I'll remember what you said, though.

    thanks

  2. #2
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use the following sylesheet for my site:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    BODY {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    color:#000000;
    font-size:11px
    }

    P {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    color:#000000;
    font-size:11px;
    text-align:justify
    }
    [/code]
    The paragraphs show up as intended, but the body text doesn't. The text size doesn't change - am I doing something wrong? I am sure this question is answered some place on the web, but 4 days with 5 hours of sleep doesn't make me want to look. (y'all know that feeling)

    also Netscape doesnt seem to support BODY tag at all. I am just trying to avoid using &lt;font&gt; tag in my site.

    thanks
    ::temis

    [This message has been edited by temis (edited February 22, 2000).]

    [This message has been edited by temis (edited February 22, 2000).]

  3. #3
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Take everything out of your paragraph tag except for the text-align:justify;. The rest of the attributes should be inherited from the BODY. If it works then your styles are working fine. In order to see Body text with styles applied to your paragraphs you need to have text outside your &lt;p&gt; tags.

    Also Netscape has a very hard time with stylesheets. If you resize your window all CSS is abandoned. If you combine linked styles with inline (i.e. &lt;div style="...."&gt; ) styles Netscape will quite possibly crash. If your server doesn't have the mime type for style sheets set up correctly Netscape will either not use them or will crash. Netscape will also not apply styles to some elements, most notably tables. Never had a problem with the body tag though. Make sure your style sheets are set up to cascade properly insert them in your document like this:
    Body
    Div
    h1-h6
    P
    A
    B
    so on and so forth. Your containers should be at the top and your misc. elements at the bottom. This why they'll inherit the styles of their parent elements properly

    ------------------
    Wayne Luke
    Internet Media Provider

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'll do some testing to check it out this evening. Right now I have to catch a train.

    ------------------
    Wayne Luke
    Internet Media Provider

    [This message has been edited by wluke (edited February 22, 2000).]

  5. #5
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I tried several different settings on my machine using styles and the body tag. The style changed every time I changed my file. I am using the IE 5.5 beta.

    ------------------
    Wayne Luke
    Internet Media Provider

  6. #6
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have IE 5.0, and mine doesnt work. Here is the code I am using (maybe I made a mistake and can't see it):
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    BODY {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    color:#000000;
    font-size:11px
    }
    P {
    text-align:justify
    }
    P.damenu {
    text-align:left
    }
    a:link {
    color:#990000;
    text-decoration:none
    }
    a:hover {
    fcolor:#000000;
    text-decoration:underline;
    background-color:#ffcc66
    }
    a:active {
    fcolor:#000000;
    text-decoration:underline;
    background-color:#ffcc66
    }
    a:visited {
    color:#996666;
    text-decoration:none
    }
    [/code]

    The font-size property doesnt seem to work.

    Thanks again, wayne

  7. #7
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Your setting your font size to 11 pixels (font-size: 11px) instead of 11 points (font-size: 11pt). Try changing that and see what happens. Besides don't you think 11 pixels would make it very difficult to read?

    ------------------
    Wayne Luke
    Internet Media Provider

  8. #8
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [sigh]
    Unfortunately that doesn't work either. I've tried changing it in numerous ways. Does it work for you?

  9. #9
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The only thing I can see that I do differently than you do is to add a ';' after the last property for each element. I know the specification doesn't require that but I add it so that if I go in later and add new properties I won't forget the semi-colon and get errors. IE5.0 might be more strict in this than in the newer version.

    Other than that the only things I can suggest are:
    Making sure the Styles are loading by placing them within the physical document for testing instead of linking.
    Try messing around with inline styles to see if it works.

    When I start creating a site I put all of my styles inline. Of course this makes the files very bulky and unsuitable for publishing but it gives me the advantage of only having one file to modify while I fine tune settings and attributes. Once the site is done I consolidate my styles into groups i.e. all attributes for my DIV tags except those specific to a particular ID. These are placed into the head of the document to make sure nothing gets screwed up. Once I verify everything is still working then finally I cut the styles out of my document and paste them into their own file that can be linked in.

    Please note that if you use Linked Styles, Inline Styles and Tables in a document and it is loaded by Navigator, there is a great chance it will crash especially if the window is resized. For more information you can read "The Day the Browser Died" on www.alistapart.com

    ------------------
    Wayne Luke
    Internet Media Provider

  10. #10
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Wayne, I will try to do that. As to Netscape - I already came across that problem once, so this time I will be more careful. But in this case I am not worried about NN too much, this site is Intranet only, IE 5 and up...

    Thanks again

  11. #11
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems like I tried everything you suggested and then some more, but the font size stays the same. I really want to use CSS to control it, though, because people with little web experience will need to update this site and I dont want them going into font sizes and types.... I am using SSI to do the updates.



  12. #12
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Assign your font information to a class tag and put class="classtag" in your body tag and see if that works. If it doesn't then use a DIV tag and assign the class to that tag.

    It would be:
    &lt;body&gt;&lt;div class='xxx'&gt;
    content
    &lt;/div&gt;&lt;/body&gt;

    ------------------
    Wayne Luke
    Internet Media Provider


Bookmarks

Posting Permissions

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