1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS Widening individual page's width?

Discussion in 'Web Development' started by kathyk, Nov 28, 2008.

  1. kathyk

    kathyk New Member

    I would like to widen the spread of the text on all my pages except the index page. When I changed this setting in style.css, it widened it for all the pages. How do I specify a width for one page only? Thanks.
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    That's because the style.css is called on every page. Look at the code at the top of each of your html files. You set the parameters for how the template (layout of the page) will look in the style.css. You could use a in-line style for just that page or copy the style.css and name the copy something like styleindex.css and make your changes. Then in the index.html at the top of the code page you call the styleindex.css file. try www.w3schools.com for more info.