This is topic help from programmers, please... in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=026117

Posted by Eruve Nandiriel (Member # 5677) on :
 
I finally got back to working on my website, but I'm stuck again. I'm trying to put pages of pictures up, and right now they're all alligned to the left. I want to make them nice and even (about 3 across) without using a bunch of spaces (& nbsp;) to format it.

Does anyone know how I can do this?

(using the html tags code)

[ July 23, 2004, 01:00 PM: Message edited by: Eruve Nandiriel ]
 
Posted by mr_porteiro_head (Member # 4644) on :
 
Use a table?
 
Posted by Eruve Nandiriel (Member # 5677) on :
 
I can't figure out how to make those work... [Frown]
 
Posted by Dagonee (Member # 5818) on :
 
I'd say a table is the best bet:

<table>
<TR><TD><IMG tag 1></TD><TD><IMG tag 2></TD><TD><IMG tag 3></TD><TR>
<TR><TD><IMG tag 4></TD><TD><IMG tag 5></TD><TD><IMG tag 6></TD><TR>
</table>

<table></table> start/end the table.

<tr></tr> start/end each row.

<td></td> start end each cell.

Dagonee
 
Posted by Eruve Nandiriel (Member # 5677) on :
 
Dagonee, thanks a lot!
Would you happen to know how to put a little more space between the cells?
 
Posted by Dagonee (Member # 5818) on :
 
Add cellspacing="PX", where PX = Number of pixels to space between them, to the inside of the <table> tag. You can also play with the cellpadding number - it's hard to explain, but easy to grasp by putting in different numbers for each. e.g.:

<table cellspacing="20" cellpadding="0">
 
Posted by Bokonon (Member # 480) on :
 
Dagonee's way will work, but it uses tricks of the Devil! If you want to do this using the One True Way(tm)! then you should use divs, spans, and CSS for formatting.

Repent! Repent!

-Bok
 
Posted by mr_porteiro_head (Member # 4644) on :
 
Use the quick and easy way to the darkside. [Evil Laugh]
 
Posted by saxon75 (Member # 4589) on :
 
I think CSS is really a little too much for someone just starting out.
 
Posted by Eruve Nandiriel (Member # 5677) on :
 
quote:
you should use divs, spans, and CSS for formatting
[Confused]

Dagonee's way seems to be working, so I think I'll stick with that for now. [Smile]
 
Posted by Dagonee (Member # 5818) on :
 
When I stopped doing web apps, we couldn't count on client browsers fully supporting CSS. So I don't know it.

Dagonee
 
Posted by Bokonon (Member # 480) on :
 
You can't count on any current web browser to fully support CSS even now [Smile] But they support enough to make using css more effective and cleaner.

CSS is a way of removing the "presentation" from the "layout". I'd recommend looking at w3schools.com for info if you care. CSS allows someone to change spacing quickly without finding the twenty places it's defined in the HTML. You change it once in the CSS and refresh the page.

-Bok
 
Posted by saxon75 (Member # 4589) on :
 
CSS is not that hard, and I like it and use it, but I think that a person who is not very familiar with HTML basics would have a hard time with CSS.
 
Posted by Bokonon (Member # 480) on :
 
True, but it's so easy to get seduced by using formatting-in-HTML, until it bites you in the butt.

Plus, learning is good!

-Bok
 
Posted by NdRa (Member # 2295) on :
 
It seems as though you are making a pretty simple website, and I think it would be ok to just use tables to get the thing up and running. I would though slowly start incorporating CSS starting out with just fonts and colors, and work your way into completely migrating divs, spans, and CSS. That's how I learned anyway. [Smile]
 
Posted by fugu13 (Member # 2859) on :
 
Actually, I'd say a photo album is probably semantically closest to a table among the choices in HTML. So a table would be fine even in a CSS site. Of course, that loses you the automatic wrapping you can get with "div's and span's" CSS, so if you're going the css route unless you have something determining the width elsewhere its better to avoid tables.

Of course, the capitalized tags in your code are still the devil, dags.

[ July 23, 2004, 05:29 PM: Message edited by: fugu13 ]
 
Posted by Mike (Member # 55) on :
 
Hmm, I'm curious: how would you do this nicely with divs + spans + css? I know a little css, but not a whole lot.
 
Posted by Dagonee (Member # 5818) on :
 
quote:
Of course, the capitalized tags in your code are still the devil, dags.
You whippersnappers with your fancy lowercase coding. Back in my day, we only had capital letters. And we only had 16 colors, if shades of green are colors. And we liked it!

Dagonee

[ July 23, 2004, 06:53 PM: Message edited by: Dagonee ]
 
Posted by Mike (Member # 55) on :
 
Speaking of having only caps, I recently had the interesting experience of logging in to a linux machine while caps lock was on. [Eek!] You should try it sometime.
 


Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2