Atrocity
09-28-2006, 07:07 PM
Ive made a template in Photoshop CS2. I have it sliced and ready to code. I posted up the problem I was having with iFrames.
After looking through alot of topics on the forum, I found better ways to code it. I would like to try and code it using PHP.
Ive clicked lots of links and they show differents way of doing it, but not with using a Photoshop template that has already been sliced. I have all the buttons sliced and content box.
Using PHP, how would I be able to add content to the content box I sliced in Photoshop>? I read something about using DIV's to do this. Should I use Dreamweaver to add DIV's, or is it better to do with a text editor>?
I read on the HTML Help pages about how to create DIV's using this code:
<div id=layer1 style="position:absolute; top:20; left:20; width:300; height:300; z-index:1; padding:5px; border: #000000 2px solid; background-color:#000000; background-image:url(yourfilename.gif); layer-background-image:url(yourfilename.gif);">
Content goes here (images, text)
</div>
The content box I sliced in PS is this in Dreamweaver:
<img src="images/content.jpg" width="535" height="372" alt="">
How would I code that to work as a DIV>?
I read over this tutorial:
http://www.stilisticdev.net/tutorials.php?t=0002&cmd=full
And I like it says it can work by making a file for each link and using PHP to call that file when a certain link is clicked, but again, it doesnt show me exactly how to add content into my box I sliced out.
This is the basic template Im trying to work with for practice.
http://img176.imageshack.us/img176/862/geeksrr4.png (http://imageshack.us)
After looking through alot of topics on the forum, I found better ways to code it. I would like to try and code it using PHP.
Ive clicked lots of links and they show differents way of doing it, but not with using a Photoshop template that has already been sliced. I have all the buttons sliced and content box.
Using PHP, how would I be able to add content to the content box I sliced in Photoshop>? I read something about using DIV's to do this. Should I use Dreamweaver to add DIV's, or is it better to do with a text editor>?
I read on the HTML Help pages about how to create DIV's using this code:
<div id=layer1 style="position:absolute; top:20; left:20; width:300; height:300; z-index:1; padding:5px; border: #000000 2px solid; background-color:#000000; background-image:url(yourfilename.gif); layer-background-image:url(yourfilename.gif);">
Content goes here (images, text)
</div>
The content box I sliced in PS is this in Dreamweaver:
<img src="images/content.jpg" width="535" height="372" alt="">
How would I code that to work as a DIV>?
I read over this tutorial:
http://www.stilisticdev.net/tutorials.php?t=0002&cmd=full
And I like it says it can work by making a file for each link and using PHP to call that file when a certain link is clicked, but again, it doesnt show me exactly how to add content into my box I sliced out.
This is the basic template Im trying to work with for practice.
http://img176.imageshack.us/img176/862/geeksrr4.png (http://imageshack.us)