www.webdeveloper.com
Results 1 to 2 of 2

Thread: CSS applying to a certain area? (without pseudo)

  1. #1
    Join Date
    Jun 2004
    Posts
    19

    CSS applying to a certain area? (without pseudo)

    I'm developing a new template to use with my eBay auctions, and as you probably know, whatever style you use in your template is carried onto the eBay page.

    Is there a way of making your CSS apply only to your part of the page, and leave the rest untouched?

    Thanks for any help.

    (Currently my CSS is included on the page, not external.)

  2. #2
    Join Date
    Jul 2003
    Location
    Boston Area, Massachusetts
    Posts
    3,489
    Actually, this is precisely a case where you'd want to use an id. Quite simply, properly assign the id attribute of the element you'd like to style in your markup like this:
    Code:
    id="container"
    And then style appropriately in the CSS:
    Code:
    #container {
    	/* rules */
    }
    
    #container p {
    	/* rules */
    }
    Just define how each element (e.g., links, paragraphs, etc.) shuold be displayed in this one "container".

    P.S. A class may also come in handy if you'd like to style several specific spots in the page with a certain style, but I'm assuming you'd only want one.
    Last edited by fredmv; 08-08-2004 at 06:54 AM.

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