dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] Tag Override

  1. #1
    Join Date
    Apr 2003
    Location
    Rosemount, MN
    Posts
    2,287

    resolved [RESOLVED] Tag Override

    I have a page, and I need to do two things:

    1. have an external style sheet with body{.....}
    2. On one of my page, I need to include the external style sheet, but I need to override body{.....} from the external style sheet.
    My settings

    Browser :: FireFox 1.5
    Resolution :: 1152x864
    Connection :: Cable Modem 2Mbs

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,430
    If you link to your stylesheet first, and then either link to a 2nd stylesheet or use a <style> block which has body attributes which override those of the original stylesheet, then those new values will be in effect. (That's the "Cascading" part CSS.)
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Apr 2003
    Location
    Rosemount, MN
    Posts
    2,287
    all I did was this:

    <body style="background-image:none;">

    It works, and that is probably what my instructor wanted.
    My settings

    Browser :: FireFox 1.5
    Resolution :: 1152x864
    Connection :: Cable Modem 2Mbs

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles