select spesific CSS condition

Discussion in 'CSS' started by leksa, Jun 28, 2007.

  1. #1
    hi,..

    i have problem width CSS hack here.

    i have 1 HTML with PHP include use 1 external CSS. XHTML compliance.
    i need to use specific CSS to some condition. Basicly to use sidebar.

    it could be like this :

    page one will use the width 100%
    but the page two will use the width :75%
    because i will put the sidebar on the right..

    how to manage in the external CSS. Does it possible to manage it in the CSS file? maybe i will put some condition in the HTML template too..
     
    leksa, Jun 28, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Without seeing your HTML output code (what the browser sees, or what I see when I right-click and select "View Source"), I'd probably assign an ID to the BODY element for the pages with the sidebar, and then place the HTML for the sidebar in those pages, styling to taste.
     
    Dan Schulz, Jun 28, 2007 IP