Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member medlington's Avatar
    Join Date
    Nov 2005
    Location
    Sheffield, UK
    Posts
    377
    Member #
    11968
    Liked
    4 times
    Hi,

    Im using a small javascript to switch between different style sheets on one of my websites, this is to enable the user to change the size of the text on the page.

    can anyone tell me if I need to have every element of my page in both of the style sheets or can i just include the elements that change?

    e.g.

    say i have the elements: container, header, maintext and footer on my initial style sheet. then when the user clicks the link a new style sheet is loaded which has a different font size for the elements: maintext and footer.

    do i need to include information for all 4 of the elements in the alternate style sheet or can i just put information about the elements: maintext and footer?

    will the browser remember the formating from the previouse style sheet?

    thanks,

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    I believe you need them all because each reference in
    your HTML will look for the appropriate ID or class in your
    style sheet, whichever one is active.


  4. #3
    Senior Member medlington's Avatar
    Join Date
    Nov 2005
    Location
    Sheffield, UK
    Posts
    377
    Member #
    11968
    Liked
    4 times
    cheers mlseim,

    thanks for the advice


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:54 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com