Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorlynnkeen
    • CommentTimeMay 17th 2006 edited
     permalink
    Hello all!

    I recently joined the group and am very happy to be a part! I was hoping someone could point me in the direction of a tutorial? I'm a fairly new person to CSS. I have been programming with Cold Fusion for many years and am familiar with the creation of a page...creating the connection statements in CF to hook the information from a database to my page...but I'm not sure how to accomplish this in CSS. I'm not using any particular tools to create my pages (just using notepad). Are there any tutorials that help with the creation of a page to create an output query to a CSS page?

    Thanks!
    Lynn Keen
    Keen Web Design
    CSS_Only Yahoo Group
    •  
      CommentAuthornifkin
    • CommentTimeMay 17th 2006
     permalink
    CSS doesn't do back-end connectivity, it's just used for defining the appearance of the code you output. If you want to continue to use a database you'll need to choose a language you feel comfortable with (sticking with CF is just fine) and then apply your CSS styles to the code output from there.
    • CommentAuthorlynnkeen
    • CommentTimeMay 17th 2006
     permalink
    CF is out...I'm not hosting and don't have the CF server option. I'm using a host that is primarily an ASP, MySQL...and I have no experience with ASP. If I could get a 'quick' tutorial on that...I'd go that way.

    Please?
    L.
    •  
      CommentAuthornifkin
    • CommentTimeMay 17th 2006
     permalink
    classic ASP: no clue. the only ASP I've ever used based on some code from 4 guys from rolla.

    ASP.NET: the appropriately named asp.net
    •  
      CommentAuthorJohnRiv
    • CommentTimeMay 17th 2006
     permalink
    Definitely check out ASP.NETResources for ASP.NET, and then follow the links on their resources page.
    • CommentAuthornasroelz
    • CommentTimeMay 22nd 2006
     permalink
    who can help me to understanding css?
    • CommentAuthorlynnkeen
    • CommentTimeMay 25th 2006
     permalink
    Nazroelz,

    You can join my CSSOnly Yahoo Group! There we are walking step by step through CSS from a beginner's perspective.

    LynnKeen
    • CommentAuthorphilmorley
    • CommentTimeMay 25th 2006
     permalink
    lynnkeen,

    here is an example of storing your css is a database, and pulling it out with php.

    you will have to rename your css file to a php file.

    this is calling the database
    <? $sql = "SELECT * FROM "database_table";
    $result = mysql_query($sql);
    while($row = mysql_fetch_array($result)){ ?>

    <?php
    $css = "

    insert your css here, but instead of writing in the font family or color or font size, you will point it to your database entry

    p{
    font-family: $row[font_family];
    font-size: $row[font_size];
    color: --000000;
    }

    ";

    this bit of code is telling php that it is a css file. and to replace the -- with # when its done. if you have a color value in the css above you must start it with -- rather than #

    echo "<style type=\"text/css\">";
    echo ereg_replace("--", "#", $css);
    echo "</style>";
    ?>

    <? } ?>

    I hope this is something you were looking for. if it is and you are confused you may email me (webmaster@suburbanwebcreations.com) your msn or aim and i will help you out.
    Cheers

    phil
    • CommentAuthorlynnkeen
    • CommentTimeMay 25th 2006
     permalink
    Hi Phil! Not what I was looking for - but AWESOME information and I will certainly store it for future! I have a 'CSS developers' group and those types of tips are certainly helpful to aid in my teaching skills!

    Thanks!
    Lynn Keen
Add your comments
    Username Password
  • Format comments as (Help)