SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Mar 2002
    Location
    United States
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Calling a CSS inside of the <body> tag

    Alright; I'm using an iFrame on my site and for some reason, it isn't recognizing the stylesheet I have linked to in the <head> tag. I remember my teacher referring to something like this as an "inline CSS" (it's been a while); how do I go about calling in a CSS inside of the <body> tag?

  2. #2
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just like:

    Code:
    <body style="margin:0px; color:#fff; background-color:#000;">
    You can read more about inline styling here:

    W3Schools CSS Section

    Hope that helps

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2002
    Location
    United States
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Wizardx8
    Just like:

    Code:
    <body style="margin:0px; color:#fff; background-color:#000;">
    You can read more about inline styling here:

    W3Schools CSS Section

    Hope that helps
    Yes I know you can do that; but what I want to do is call in a WHOLE style sheet; not just parts of it. Is that possible?

  4. #4
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not that I am aware of, as far as I know you can only call an external stylesheet from the head using the link tag...

    Sorry

  5. #5
    SitePoint Member
    Join Date
    Sep 2002
    Location
    East Coast
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    put the style sheet link on both the html document you are calling into your iframe and the main page you are using.
    I owe you one witty remark - Wax


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
  •