Click to See Complete Forum and Search --> : help. new to html.


Fashy
08-14-2005, 06:28 AM
I am a designer but new to HTML. I was hoping I could gain some help from here as I am trying to build up a website for my portfolio, but I am also learning. Below is a code for the main body of my site where the text and images will go – however I am having trouble putting the final line on the right (its a box I am trying to do). I am working with 1x1pxl image and just adjusting the size in the HTML as I want that neat outline look rather then the look of a table outline. Can anyone help?



<BODY>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="1x1.jpg" width="800" height="1"></td>
</tr>
</table>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="1x1.jpg" width="1" height="600"></td>
</tr>
</table>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="1x1.jpg" width="800" height="1"></td>
</tr>
</table>
</BODY>


I am sure you can see what I am trying to do by looking at it - I just can't put the final line on the right as it dosn't line up.

Charles
08-14-2005, 06:35 AM
1) From the HTML 4.01 Specifications:Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables.And see http://www.csszengarden.com/ for examples of how to do it properly.

2) That's not a valid web page. Here's a template to start you off:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title>Some Title</title>
</head>
<body>

</body>
</html>And see http://www.w3.org/TR/html401/ .

3) And while your at it, see http://diveintoaccessibility.org/ .

the tree
08-14-2005, 06:46 AM
I want that neat outline look rather then the look of a table outline.There's no need for images or tables if all you want is an outline.<div style="
border: 2px solid #558;
background: #ddf;
color: #224;
width: 200px;
padding: 10px;
">
<p>One smooth box</p>
</div>

Fashy
08-14-2005, 07:20 AM
Thanks for your help guys. I have not learnt CSS yet, so I am probably jumping a head of myself. But the best way to learnt is to do it. :)

Charles
08-14-2005, 07:50 AM
I have not learnt CSS yet, so I am probably jumping a head of myself. You can't make a web page without CSS.

buntine
08-14-2005, 09:18 AM
Why?

cbstudio
08-14-2005, 10:37 AM
You can't make a web page without CSS.
true dat. I remember the day that CSS clicked in my head. it was like a god send.

but about the original question- the code looks alright to me. is the image in the same folder as the html file?

the tree
08-14-2005, 11:35 AM
You can't make a web page without CSS.Of course you can. It'd looK incredibly boring but it'd still be a valid webpage.

spufi
08-14-2005, 12:26 PM
Of course you can. It'd looK incredibly boring but it'd still be a valid webpage.

Actually, it could look top of the line. It's just all of the presentational aspects of the code would be defined in Trans. Doctype attributes. The HTML would also be far from semantic, but it still would be W3C valid.