Log in

View Full Version : How can I insert "css" into "php"?



Benedizione
05-11-2007, 10:32 PM
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

boxxertrumps
05-12-2007, 02:02 AM
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:

<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>

Twey
05-12-2007, 09:53 AM
That's not tabular data, so you shouldn't put it in a table.

alexjewell
05-12-2007, 07:41 PM
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?

Benedizione
05-14-2007, 04:10 AM
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.

boogyman
05-14-2007, 01:34 PM
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?