Results 1 to 6 of 6

Thread: How can I insert "css" into "php"?

  1. #1
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default How can I insert "css" into "php"?

    I am wanting to use this "css" table for my menu:
    http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

    on my php page at http://www.propheciesofrevelation.org/test.php


    This is what I have written at "test.php":


    <div id="menu">
    <a href="test.php">This is a test link</a>
    <a href="signs.php">What are the signs of the end</a>
    <a href="rapture.php">What is the rapture</a>
    <a href="tribulation.php">What is the tribulation</a>
    <a href="peacetreaty.php">What is the 7-year peace treaty</a>
    <a href="armageddon.php">What is armageddon</a>
    <a href="mark.php">What is the mark of the beast</a>
    <a href="nwo.php">What is the new world order</a>
    <a href="battle.php">Spiritual warfare</a>
    <a href="religions.php">Other religions</a>
    <a href="reviews.php">Film and book reviews</a>
    <a href="resources.php">Biblical resources</a>
    <a href="relatedlinks.php">Related links</a>
    <a href=" http://christianmovies.com" target="_blank">Christian movies</a>
    <a href="archives.php">Archives</a>
    <a href="commentaries.php">Commentaries</a>
    <a href=" http://prophecyofrevelation.tripod.com/endtimesblog/" target="_blank">Blog page</a>
    <a href="faqs.php">Frequently asked questions</a>
    <a href="salvation.php">How can I be saved</a>
    <a href="commandements.php">The ten commandments</a>
    <a href="ourbeliefs.php">Our beliefs</a>
    <a href=" http://groups.yahoo.com/group/prophecyofrevelation/" target="_blank">
    Subscribe to newsletters</a>
    </div>



    I finally figured out how to get the "php" script to work. That was neat. But now my menu is all jumbled together and I need to learn how to create a nice table for which I would like to use the "css" script at http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm


    I tried to insert the script and got confused. Then I tried using my current html table at http://propheciesofrevelation.org/main.htm and it did not work.

    What am I doing wrong?

    Andrea

  2. #2
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    The first thing i would do is validate the pages.
    Then you just need to make sure the link rel attribute is equal to the cooresponding div's id.
    Like So:
    Code:
    <a href="signs.php" rel="sign">What are the signs of the end</a>
    <a href="rapture.php" rel="rapture">What is the rapture</a>
    <a href="tribulation.php" rel="tribulation">What is the tribulation</a>
    
    <div class="tabcontainer">
    <div id="sign" class="tabcontent">short description about the signs...</div>
    <div id="rapture" class="tabcontent">short description about the rapture...</div>
    <div id="tribulation" class="tabcontent">short description about the tribulation...</div>
    </div>
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    That's not tabular data, so you shouldn't put it in a table.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    One of the great things about CSS, for me, is it replaces tables in a lot of circumstances.

    All I can say is to follow the examples on the dd page you linked above...which, I don't see anything similar to that on your site?
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  5. #5
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    I am working on a test page first................"test.php". Trying to make sure that I have all the code figured out and know what I am doing before I actually implement anything into the real website. That is why you do not see what I am trying to do at the actual website.

  6. #6
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by Benedizione View Post
    I am working on a test page first................"test.php". Trying to make sure that I have all the code figured out and know what I am doing before I actually implement anything into the real website. That is why you do not see what I am trying to do at the actual website.

    part of testing is to publish it and see what others think though? eg. Beta Page?

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
  •