Results 1 to 4 of 4

Thread: import css class

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default import css class

    i have imported a css file to my project.
    Now I want to change a specific css class
    how do I do it

    for ex.:
    . HtmlSubHeaderDDL
    {
    width:108px;
    border-top: 1px solid #D6D6D6;
    }
    I just want to change the border-top color
    do I have to add a@ to import?
    if yes where?

    of course the . HtmlSubHeaderDDL will be in my css file

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I don't understand the situation.

    @ will import a DIFFERENT .css file into the CURRENT .css file-- inside 1.css you can use @ to import 2.css.

    But here can you not just type the value directly?

    When do you want to "change" the css? Now? While the page is loading? In the future? That's the important question before we can help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default

    i have a website, the header is taken from another website so i imported their css file.
    I just need to change one class who is creating me problems.

    how do i do it?

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Change/delete the text in the .css file that you do not want.

    (And be careful about copyright.)


    You could also create a new definition that is processed after the first and then will overwrite the first, but that's more complex and unpredictable. If you can just change the text, there's no reason not to.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •