FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » help from programmers, please...

   
Author Topic: help from programmers, please...
Eruve Nandiriel
Member
Member # 5677

 - posted      Profile for Eruve Nandiriel   Email Eruve Nandiriel         Edit/Delete Post 
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 ]

Posts: 4174 | Registered: Sep 2003  |  IP: Logged | Report this post to a Moderator
mr_porteiro_head
Member
Member # 4644

 - posted      Profile for mr_porteiro_head   Email mr_porteiro_head         Edit/Delete Post 
Use a table?
Posts: 16551 | Registered: Feb 2003  |  IP: Logged | Report this post to a Moderator
Eruve Nandiriel
Member
Member # 5677

 - posted      Profile for Eruve Nandiriel   Email Eruve Nandiriel         Edit/Delete Post 
I can't figure out how to make those work... [Frown]
Posts: 4174 | Registered: Sep 2003  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
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

Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
Eruve Nandiriel
Member
Member # 5677

 - posted      Profile for Eruve Nandiriel   Email Eruve Nandiriel         Edit/Delete Post 
Dagonee, thanks a lot!
Would you happen to know how to put a little more space between the cells?

Posts: 4174 | Registered: Sep 2003  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
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">

Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
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

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
mr_porteiro_head
Member
Member # 4644

 - posted      Profile for mr_porteiro_head   Email mr_porteiro_head         Edit/Delete Post 
Use the quick and easy way to the darkside. [Evil Laugh]
Posts: 16551 | Registered: Feb 2003  |  IP: Logged | Report this post to a Moderator
saxon75
Member
Member # 4589

 - posted      Profile for saxon75           Edit/Delete Post 
I think CSS is really a little too much for someone just starting out.
Posts: 4534 | Registered: Jan 2003  |  IP: Logged | Report this post to a Moderator
Eruve Nandiriel
Member
Member # 5677

 - posted      Profile for Eruve Nandiriel   Email Eruve Nandiriel         Edit/Delete Post 
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]

Posts: 4174 | Registered: Sep 2003  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
When I stopped doing web apps, we couldn't count on client browsers fully supporting CSS. So I don't know it.

Dagonee

Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
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

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
saxon75
Member
Member # 4589

 - posted      Profile for saxon75           Edit/Delete Post 
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.
Posts: 4534 | Registered: Jan 2003  |  IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
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

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
NdRa
Member
Member # 2295

 - posted      Profile for NdRa   Email NdRa         Edit/Delete Post 
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]
Posts: 1015 | Registered: Aug 2001  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
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 ]

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Mike
Member
Member # 55

 - posted      Profile for Mike   Email Mike         Edit/Delete Post 
Hmm, I'm curious: how would you do this nicely with divs + spans + css? I know a little css, but not a whole lot.
Posts: 1810 | Registered: Jan 1999  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
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 ]

Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
Mike
Member
Member # 55

 - posted      Profile for Mike   Email Mike         Edit/Delete Post 
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.
Posts: 1810 | Registered: Jan 1999  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

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