Made a layout and sliced it but...
V-P
State College, PA Member
So I made a layout in Photoshop, and I even sliced it, but I don't know how to add text to it so that it can be changed via Dreamweaver. If anyone could help me out with this, please let me know. If you need the layout to do it, I'll e-mail it to you or if possible, attach it in a PM. Thanks in advance for the help!
0
Comments
If your going to use tables, which I think splicing and exporting as HTML in PS does, then you'll want to use the images as background images in their cells. This will allow text to be typed in over the image during the coding process in Dreamweaver
[PHP]
<html>
<head>
<title>Prototype</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Prototype.psd) -->
<table id="Table_01" width="968" height="1213" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="5">
<img src="images/Prototype_01.gif" width="58" height="1089" alt=""></td>
<td colspan="3">
<img src="images/Prototype_02.gif" width="848" height="489" alt=""></td>
<td rowspan="5">
<img src="images/Prototype_03.gif" width="62" height="1089" alt=""></td>
</tr>
<tr>
<td rowspan="4">
<img src="images/Prototype_04.gif" width="274" height="600" alt=""></td>
<td>
<img src="images/Prototype_05.gif" width="487" height="82" alt=""></td>
<td rowspan="4">
<img src="images/Prototype_06.gif" width="87" height="600" alt=""></td>
</tr>
<tr>
<td>
<img src="images/Prototype_07.gif" width="487" height="324" alt=""></td>
</tr>
<tr>
<td>
<img src="images/Prototype_08.jpg" width="487" height="58" alt=""></td>
</tr>
<tr>
<td>
<img src="images/Prototype_09.gif" width="487" height="136" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="images/Prototype_10.jpg" width="968" height="62" alt=""></td>
</tr>
<tr>
<td>
<img src="images/Prototype_11.gif" width="58" height="62" alt=""></td>
<td colspan="3">
<img src="images/Prototype_12.gif" width="848" height="62" alt=""></td>
<td>
<img src="images/Prototype_13.gif" width="62" height="62" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
[/PHP]
I have some other problems which I'll address as soon as I get this setup. Thanks RWB!
Use the background="" tage in the tables.
Also try giving the cells per image the size of each image, this will allow the tables to adjust themselves while loading, just kinda makes it look better when loading IMHO.
EDIT:??
Err nevermind, the images already had them :P
EDIT AGAIN!!! If you do use the images in teh background, youwill need to put those sizes into the tags for the tables LOL, mybad.
The slices are pretty crazy.. some are way off and don't make sense. Such as the header slice which takes up half of the two boxes below it... and becuase it's all flattened it makes it hard to build in such a way that you can add content at a later time. But I'll email you what I have so you can get an idea of what I mean.
I should have it done tonight if I don't pass out at my desk :P
http://www.fusion-dm.net/scar/index2.html
This is what I have done so far...
So... yeah. The main menu is bad right now. Trying to find a way to have the main menu work the way I think would be best.
Check it out... hereis the site with no CSS...
http://www.fusion-dm.net/scar/index3.html
Notice the site works just fine, just no good looks and no images. All the info is there including the header info and the like... Also notice the menu is all words, using css I've hidden the words and exchanged them with images. But this cuased issues with making them buttons. It works fine for the header "Exploring the Unknown"... but I think it might be best to turn those menu links into flash objects which I think will fix that issue plus give you rollovers alot easily. Or other nifty effects.
Here is the menu the way it was supposed to be :P
http://www.fusion-dm.net/scar/index.html
But it's basically there... I hate using tables... with this design you can change up the layout more easily.
I tried noting alot of the areas so you can duplicate them more easily. I'll send you what I have soon
[PHP]<li class="home"><a href="../index.html" title="Take me home daddy!" target="_self">HOME</a></li>[/PHP]
If you do the links in flash, then you can remove the following...
[PHP]<a href="../index.html" title="Take me home daddy!" target="_self">HOME</a>[/PHP]
But leave the HOME... So now it just says:
[PHP]<li class="home">HOME</li>[/PHP]
Then you need to update the info in the CSS... in this case the class is "home"... [PHP]#main_menu li.home {
background-image: url(../images/menu_home.gif);
background-repeat: no-repeat;
text-indent: 25px;
height: 20px;[/PHP]
This is the current CSS... if you were to name the "home" link done in flash the same way, then the section you change will say:
background-image: url(../images/menu.swf);
[PHP]#main_menu li.home {
background-image: url(../images/menu_home.swf);
background-repeat: no-repeat;
text-indent: 25px;
height: 20px;[/PHP]
I hope it all works out, I admit I am behind on this stuff so I am paying for it now lol.
Okay, I got it. Thanks.
On a side note, I'm learning cinema 4D at the moment, and it's amazing. It's like maya, but it's much, much easier to work with.