SitePoint Sponsor

User Tag List

Results 1 to 12 of 12

Thread: CSS source code

  1. #1
    SitePoint Member Ikaro's Avatar
    Join Date
    Mar 2002
    Location
    Lima, Peru
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question CSS source code

    do you know where can I find examples about CSS, something more advanced not basic. I want to set a 2-color background (gradient). some people says it's impossible, Is it??
    Acid Jazz blows my mind
    Travelling without moving

  2. #2
    SitePoint Guru sowen's Avatar
    Join Date
    Feb 2001
    Location
    Stockport, UK
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This should keep you busy! the W3 CSS2 specs, everything you ever wanted to know about CSS2 in one unabridged version (approx 350 page PDF)
    http://www.w3.org/TR/REC-CSS2/
    good hunting

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ikaro...it IS impossible to create a gradient with CSS. Just use an image.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  4. #4
    SitePoint Member Ikaro's Avatar
    Join Date
    Mar 2002
    Location
    Lima, Peru
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    Ikaro...it IS impossible to create a gradient with CSS. Just use an image.
    Ok Here is the answer:

    visit http://www.jacindaswebdesign.com/Ins...VPScript3.html and look at the secon <DIV> in the <BODY>
    Acid Jazz blows my mind
    Travelling without moving

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I understand that. This is the code that accomplishes that:

    FILTER: progidXImageTransform.Microsoft.Gradient(endColorstr='#00eedddd', startColorstr='#FFaabf9a', gradientType='1');

    but what I am trying to tell you is that is not CSS. That's a MS only hack that has nothing to do with CSS other than using CSS to apply it. It's not in the CSS spec and other browsers (can't speak for Opera) don't support it.

    While I WISH that it was possible, it's not. Can I ask why it's so important to use CSS to accomplish this effect? Why not just use an image?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  6. #6
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have just redone my website using CSS (sorry I can't stop grinning) and I strongly recomemnd that you do not use any hacks and make sure that it is compliant and it validates.

  7. #7
    SitePoint Guru sowen's Avatar
    Join Date
    Feb 2001
    Location
    Stockport, UK
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice job Nicky! Not table tag in site.

    BTW
    I guess I could always read it myself to check now and then that I actually exist.
    You don't, your just a figment of our imaginations.

  8. #8
    SitePoint Member Ikaro's Avatar
    Join Date
    Mar 2002
    Location
    Lima, Peru
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy well well welll

    Ok guys an girls I know it isn't CSS but at least is possible... I'm new with CSS and now I know that users rules 'cos you make a website for them and not for U.

    It was just a simple question and Thanx.
    Acid Jazz blows my mind
    Travelling without moving

  9. #9
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually...if you're doing work for a client then you do it for the end user. However, if you're making a site for you, about you or about things you like then you can do it however you like. In essence, YOU are the end user.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  10. #10
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That is what my personal website is for - me! I very much doubt anyone actually reads it, but I have fun doing it and it is like a canvas for me to learn new stuff.

  11. #11
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Nicky
    and make sure that it is compliant and it validates.
    Hehe, just to play the devil's advocate here...

  12. #12
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Weird...her doc type says transitional but the validator is trying to validate against a strict doctype.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •