View Full Version : Help Please [layout + coding?]


Astray
05-21-2005, 11:48 PM
Hey,

I just made a layout in Image Ready/ Photoshop CS but I'm not sure what to do with it. I've been researching for awhile and I don't know how or what would be best. Divs/ Css/ Tables/ using it as a background? I have a sliced version as well, but I have no idea how to code it. I've been to several tutorial sites, but I don't really understand it + the specifications on where things are placed and other variables are set for their template, and I'm not sure how to adapt it to mine. Could anyone give me some advice and some links to really "for idiots" tutorials?

http://www.geocities.com/astray_05/LAYOUTSAMPLE.jpg

Thanks a lot ^^

cyberhottie
05-22-2005, 02:18 AM
//hey

wow i think ur really talented and i luvv ur layout. i have Photoshop 7.0 /Imageready and I usually use it for my layout.

First, I make my image in Photoshop and then i transfer it to Imageready. There, I slice it. Make sure you make a slice out of your content area. later on, we will make this an iframe so this is important.

When you are done slicing, go to File>Save Optimized As.... when you get there, name your file (in our example we'll save it as astray) and save it as "html and images (*html)". When you do this it creates an html file for you (in our case astray.html) and it saves your slices in a folder called "images" (in our example they will be called astray_01.gif, astray_02.gif etc etc).

once you have done this, go to ur server (in ur case geocities) and upload all the slices and the html document. open up the html document, it will look something like this:

<HTML>
<HEAD>
<TITLE>layout</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 (layout.png) -->
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=4>
<IMG SRC="images/ts2_01.gif" WIDTH=224 HEIGHT=38 ALT=""></TD>
<TD COLSPAN=3 ROWSPAN=2>
<IMG SRC="images/ts2_02.gif" WIDTH=576 HEIGHT=86 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=38 ALT=""></TD>


now we are going to set up a homepage for you.make a document called home.html. Now go to astray.html (or the html document named after your layout by Imageready), go to the slice where you want your content to be located. this might be right underneath your navigation bar. it could be called astray_06.gif. what ur going to do is replace this( its just an example):

<TD ROWSPAN=5>
<IMG SRC="images/astray_06.gif" WIDTH=?HEIGHT=? ALT=""></TD>

with this:

<TD ROWSPAN=4>
<IFRAME name="content" src="http://www.geocities.com/astray_05/home.html" width=? height=? marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=yes style="FILTER: chroma(color=#ff0000)" allowtransparency="true"></IFRAME></TD>


What the code means
Iframe name: this means the name of the iframe. if you want to link another page to this iframe you will use its name. for example:
<a href="mylinks.html" target="content">
src: this is the source of your homepage. in your case, home.html
width, height: make this the EXACT dimensions of the slice you just removed.
scrolling: choose yes, no or auto.
The Rest: dont worry about it.

fore more info on iframes, check out the iframes section of lissaexplains.com (http://www.lissaexplains.com)

after you are done this, preview your page. it should be ok.

*NOTE: make sure that in your html document with the tables, the slices are linked properly. for example, on geocities if you put your slices in a folder called "slices" you should change all your IMG SRC tags to "slices/astray_01.gif" instead of "images/astray_01.gif". if you put it in no folders at all, remove the "images" and make it just <IMG SRC="astray_01.gif">

if you have any questions, you can email me (curli_top@tropicalshortee.tk) and i'll reply asap. or you can reply on this thread but i might forget to reply. hope i helped.

luvv,

cyberhottie.<3

Astray
05-22-2005, 04:06 AM
Thanks for replying, but it still won't work :\. I have no idea what went wrong, but heres a screenshot :

http://jupiter.walagata.com/w/seeth/messed.JPG

pb&j
05-22-2005, 02:45 PM
there are different ways of completing your design.
just takes your own preference on which way to go.

my thought would be...

keep the image whole and use it as the background.
i like to use DIVs that are positioned into place using CSS.
IFRAMEs are good for creating a small window area that changes.

Brandon_Lee
05-22-2005, 03:28 PM
Heres the best way to do it. Slice the very top part (the banner part) and name it banner.png. Then slice a part that repeats to the bottom and call that background.png.

Using div's positions the banner, wheres the left bar will be and the content. The div code is:


<div style="position: absolute; top:0px; left:0px; width:100px; background:#000;">Content STuffs Whatever</div>


Customizing those coordinates you can place images/text/content anywhere. That is set to the left corner because it's 0px from the top and 0px from the left side. The background is good for testing your widths and can be removed.

For the your graphic links I'd suggest image mapping that and you can get a simple program for that from download.com or searching google (unless you can find that function in PS, i don't know).

I hope I helped you. If you would like some more help just reply ^^

Astray
05-22-2005, 11:01 PM
Thanks guys! I used the Div commands to do the layout, and it worked out perfectly!

http://www.geocities.com/astray_05/AstrayV2/Home.html

^^ the only other questions i have are:

How do you specify the width that page opens up in? I don't want to have that white part on the right side.

Is there a way to target the links to that Div layer with the content? I don't want to have it open up in a new window/refresh the page each time, if possible.

Brandon_Lee
05-22-2005, 11:36 PM
You could, in css, define the bodies background color as a matching color. I personally think a popup for this layout would be horrid >>

pb&j
05-23-2005, 01:05 AM
Is there a way to target the links to that Div layer with the content? I don't want to have it open up in a new window/refresh the page each time, if possible.
insert an IFRAME into the space. instructions can be found under HTML and FRAMES in the top navigation.