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 6 of 6
  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    3
    Member #
    36812

    Need help on removing a large CSS file

    Hi,

    I have the following page,
    Software for Students

    Which I think is ok. Long story short, it's inherited from a previous designer...
    but it uses a large CSS file, namely style2.css, (215k),
    I want to remove it while retaining part of it, but I'm not a CSS expert. Here's my attempt,
    ]Software for Students

    Question, how do I copy elements that the current index5.html uses from style2.css to main_new5.css
    for the main_new5b.css file, so that, the index5b.html would look exactly the same as index5.html ?

    Many thanks.
    Last edited by knowledgenotebook; Jul 19th, 2013 at 06:50 AM. Reason: new to the forum

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    That's a tricky one because there's no generic answer to that question.

    If it had been me doing this, and I'm not trying to sound like I'm second-guessing you here, I would have built each section of the page and copied over the elements that were relevant to it until I got that section working, and then moved onto the next one.

    With that said, you've already done some of the work, so here's how I'd handle it:

    1) Open up a copy of Google Chrome, and then open up two tabs (one for the old page, and one for your page).
    2) Find an element that doesn't look the same on both sites.
    3) Right click that element on the old site and examine the computed styles in the DOM inspector.
    4) Create a new CSS file (call it style2a.css or something) and copy the styles that apply to that element until it looks the same.
    5) Repeat steps 2 - 4 for the other elements.

    Might take you an hour or two, but it should get you there.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    3
    Member #
    36812
    Quote Originally Posted by TheGAME1264 View Post
    That's a tricky one because there's no generic answer to that question.

    If it had been me doing this, and I'm not trying to sound like I'm second-guessing you here, I would have built each section of the page and copied over the elements that were relevant to it until I got that section working, and then moved onto the next one.

    With that said, you've already done some of the work, so here's how I'd handle it:

    1) Open up a copy of Google Chrome, and then open up two tabs (one for the old page, and one for your page).
    2) Find an element that doesn't look the same on both sites.
    3) Right click that element on the old site and examine the computed styles in the DOM inspector.
    4) Create a new CSS file (call it style2a.css or something) and copy the styles that apply to that element until it looks the same.
    5) Repeat steps 2 - 4 for the other elements.

    Might take you an hour or two, but it should get you there.
    TheGAME1264, thanks, is there a simpler way?

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Not that I can think of. When a CSS file is that large, you don't know what is/isn't being used and where.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Junior Member
    Join Date
    Jul 2013
    Posts
    3
    Member #
    36812
    Quote Originally Posted by TheGAME1264 View Post
    Not that I can think of. When a CSS file is that large, you don't know what is/isn't being used and where.
    Problem solved. Thanks tho.

  7. #6
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Care to share your solution? It may be helpful to others.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


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
  •  

Tags for this Thread

All times are GMT -6. The time now is 12:27 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com