View Full Version : linking prob in html


Margrein
09-26-2006, 10:41 AM
Lisa Sis i appreciate if you will help me out..My web page have a logo on the upper side named as (logo.html).Secondly there is a left frame in which i place some product list of the company named (leftframe.html).Lastly,there are 4 little frames beside left frame ..the height of left frame is just as equal to the right 4 frames..Now i have created the data for all these frames but i dont know hot to combine all this on on page..I decided to use frame..but still i faced problem of scrolling window..I may not be able to handle the size of that frames so the page looks good..right now it seems there are a lot of scrolling on the single page..and there is no any scrolling on the right side of the web page as i should be..so what would you suggest me Madam..what should i do??I dont know about css..i know a little bit about html..Can you plz tell me what code i should use..Plzzzzz liza sis help me out..or any body who reads that post..plz help..any help will be appreciated..

J to the izzosh
09-26-2006, 01:23 PM
Well, if you want to have the five sections loaded as five separate documents, than you will need to use frames. Lissa does offer some information on using frames (http://www.lissaexplains.com/frames.shtml). It's somewhat unconventional to have four frames arranged on the right-hand side of the page, though, with only one on the left. If possibly, you might benefit from the simplicity of design that you would gain by merging at least the four right frames into a single page. It's hard to say specifically how you should create your page without seeing what you've tried so far. It would be helpful if you could post a link to what you have now.

Margrein
09-26-2006, 02:37 PM
Well, if you want to have the five sections loaded as five separate documents, than you will need to use frames. Lissa does offer some information on using frames (http://www.lissaexplains.com/frames.shtml). It's somewhat unconventional to have four frames arranged on the right-hand side of the page, though, with only one on the left. If possibly, you might benefit from the simplicity of design that you would gain by merging at least the four right frames into a single page. It's hard to say specifically how you should create your page without seeing what you've tried so far. It would be helpful if you could post a link to what you have now.

Thnx for your concern..!!

Ok let me tell you in detail about my idea of web page.here is a sketch of what i wanted to make

IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
I lOGO.JPG
I
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII I I 1
I I
I IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
I TABLE I 2
I I
I IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
I I 3
I I
I IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
I I 4
I I
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII


I have made all pages separately.Table on the left side consisted of product list of company as i am creating a company's web site and the right hand 4 tables contained products related computer,second table on the right side consisted of products of office use and so on..Tell me Bro..is it a good adea or i should change it.Can you plz check out bazaarwala.com..Almost every thing was same as i want to created..just i want to change the lookup of the front page...some thing unique and attractive..now tell me what shoul i do..i tried frames also but a scrawling window appears withh every frame..so the page looks very ugly..i am so confused..Can you plz guide me..plz???:(

J to the izzosh
09-26-2006, 04:34 PM
There are a lot of ways that you can do that but I'm going to point you in the direction of only two. One of them involves the use of frames, the other doesn't. Personally, I recommend the one that doesn't because of some accessibility problems that frames have, but either method is perfectly valid.

With frames, you will only need 3: A top frame for your header and main navigation that is the whole width of the window, a narrow left frame for your product list, and a wider right frame for your content. It will basically look like this:
________________
| header |
----------------
| p | |
| r | |
| o | content |
| d | |
| | |
----------------

Because there are three frames you will also need to make at least three HTML documents: one with just the header and navigation, one with just the list of products, and one with the table of product lists. All of the links in your header and product list should be targeted to the content frame. All of your links in documents that are loaded in the content frame should just be allowed to load where they are. Any other pages that you make for products, etc. should be designed to load in the content frame. Lissa's frame tutorial that I linked above provieds instructions for all of this.

The second method, once again, doesn't use frames. It does, however, rely on the use of some CSS. Instead of breaking the parts of your page into separate documents dispalyed in frames, you could just leave everything in one document and separate the different sections with page divisions. Most every page on your site will need to have the header and left panel on it. Because of this, whenever you load a new page, the entire page will be reloaded. The effects of this are largely alleviated by a browser's cache, though. Your source would look something like that shown below. Obviously, it's in need of a lot of tweaking on your part, and you'll likely have to learn a fair amount of CSS and some more HTML, but it's semantically correct. If you find it too difficult, there's still the frames option.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Product Stuff</title>
<meta http-equiv="Content-type" content="application/xhtml+xml;charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>

<body>
<div id="header">Header image, links, etc. would go here.</div>

<div id="prod_list">
<h2>Product Category 1</h2>
<ul>
<li>Product 1</li>
<li>Product 2</li>
<li>Product 3</li>
<li>Product 4</li>
<li>Etcetera</li>
</ul>

<h2>Product Category 2</h2>
<ul>
<li>Product 1</li>
<li>Product 2</li>
<li>Etcetera...</li>
</ul>
</div>

<div id="content">
<table>
<tr>
<th>Product Category 1</th>
<th>Product Category 2</th>
<th>Product Category 3</th>
<th>Etcetera...</th>
</tr>

<tr>
<td>
<ul>
<li>Product 1</li>
<li>Product 2</li>
<li>Product 3</li>
<li>Product 4</li>
<li>Etcetera</li>
</ul>
</td>

<td>
<ul>
<li>Product 1</li>
<li>Product 2</li>
<li>Product 3</li>
<li>Product 4</li>
<li>Product 5</li>
<li>Product 6</li>
<li>Product 7</li>
<li>Etcetera</li>
</ul>
</td>

<td>
<ul>
<li>Product 1</li>
<li>Product 2</li>
<li>Etcetera</li>
</ul>
</td>

<td>
<ul>
<li>Product 1</li>
<li>Product 2</li>
<li>Product 3</li>
<li>Product 4</li>
<li>Product 5</li>
<li>Etcetera</li>
</ul>
</td>
</tr>
</table>
</div>

</body>
</html>

And the CSS file, styles.css:
div#header {
height:120px;
/* styles for header section */
}

div#prod_list {
float:left;
width:20%;
/* other styles for product list section */
}

div#content {
float:right;
width:80%;
/* other styles for content section */
}

#content table {
margin:15px auto;
border-collapse:collapse;
border:solid 1px black;
}

#content th,td {
padding:5px;
border:solid 1px black;
vertical-align:top;
}

Margrein
09-28-2006, 08:35 PM
There are a lot of ways that you can do that but I'm going to point you in the direction of only two. One of them involves the use of frames, the other doesn't. Personally, I recommend the one that doesn't because of some accessibility problems that frames have, but either method is perfectly valid.
.................................
#content th,td {
padding:5px;
border:solid 1px black;
vertical-align:top;
}[/code]

Hi BRO..

Hmmm its nice to see your reply..now i am sure as it takes a lot of people to make this world but to make it nicer one it needs persons just like you:) ...well moving to topic i also personally like the second method using css but the problem is i am zero at this point..:( ...but i have a true intention to learn it..can you plz give me guide line that what i need to write style sheet as i studied lisa's css corner..But i am confused about where i should place the code of style sheet??In notepad??As i am making website offline on notepade..i have only 1 clue..I saved that code of style sheet as styles.css..Is it right way or not??I hope you will not disappoint me and guide me ...isn't it??

J to the izzosh
09-28-2006, 11:00 PM
Yes, that's basically right. You'd want to save the CSS as a text file named styles.css (or something.css, anyway, as long as you made sure the link in the HTML matched the file name). You could save it with notepad or any other editor. Same thing for the HTML, only it would be a .htm or .html file extension, of course.

If you need to learn a little more than Lissa's tutorial, try the following. They're pretty thorough and provide some hands-on examples:
http://www.westciv.com/style_master/house/tutorials/index.html

Margrein
10-03-2006, 02:15 PM
Yes, that's basically right. You'd want to save the CSS as a text file named styles.css (or something.css, anyway, as long as you made sure the link in the HTML matched the file name). You could save it with notepad or any other editor. Same thing for the HTML, only it would be a .htm or .html file extension, of course.

If you need to learn a little more than Lissa's tutorial, try the following. They're pretty thorough and provide some hands-on examples:
http://www.westciv.com/style_master/house/tutorials/index.html

:confused: Brother I tried to make a style.css after studied a bit about style sheet but i think now Style sheet r not for the purpose which i m trying to...Every web site has some theme of designing which shows on its every page.Style sheet is basically to make one file regrading designing fonts n colors so that to apply it on every page.what i wanted to do is divide the page as main frame, left frame and navigation frame...I tried that code as well which you guide me in your second last post but still it is not working the way i want.just have a look
<body>


{bgcolor="330099"}


h2 {background-color: 3399FF}
h2{letter-spacing: 0.1cm}
h2 {text-align: center}

h4{text-align: center}
h4{letter-spacing: 0.1cm}
h4 {color:000099}
q.uppercase {text-transform: uppercase}

p.margin {margin-right: 7cm}
p {text-indent: 1cm}




p.{font-size: 110%}
p {color:3366CC}

p.{font-style:courier}


img.big
{
height:180px;
width: 190px
}

q.{font-size: 110%}
q {color:990099}
q {font-family: courier
</body>
</html>

This is a sample of that style sheet which i made.How can i add top,left and right frame