Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

An HTML question....

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
On Par Donating Member (912 posts) Send PM | Profile | Ignore Fri Oct-28-05 05:57 PM
Original message
An HTML question....
If you wanted to place two 3 line addresses centered side-by-side, rather than one beneath the other, what html would you need to place to make that happen?

Printer Friendly | Permalink |  | Top
evlbstrd Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 05:59 PM
Response to Original message
1. You could use a table of 1 row and 3 columns
Printer Friendly | Permalink |  | Top
 
On Par Donating Member (912 posts) Send PM | Profile | Ignore Fri Oct-28-05 06:02 PM
Response to Reply #1
3. Could You Show Me The HTML Needed?
I don't have the knowledge to write that.
Printer Friendly | Permalink |  | Top
 
XemaSab Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:04 PM
Original message
That's the strategy
<TABLE>

<TR>

<TD>

address 1

<TD>

address 2

<TD>

address 3

</tr>

</table>
Printer Friendly | Permalink |  | Top
 
Kellanved Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:01 PM
Response to Original message
2. a table
Edited on Fri Oct-28-05 06:05 PM by Kellanved
...
<table>
<tr>
<td> address1 </td>
<td> address2 </td>
<td> address3 </td>
</tr>
</table>
...

Actually I would use CSS, but the table is easier.

ON Edit: use <br/> to brake a line inside a cell/address.
Printer Friendly | Permalink |  | Top
 
ChoralScholar Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:04 PM
Response to Reply #2
5. aaaah.. you beat me to it!!!
Printer Friendly | Permalink |  | Top
 
ChoralScholar Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:03 PM
Response to Original message
4. here you go:
<center><table>
<tr>
<td>Name 1
<br>Address 1
<br>City 1, State 1, ZIP 1</td>

<td>Name 2
<br>Address 2
<br>City 2, State 2, ZIP 2</td>
</tr>
</table></center>
Printer Friendly | Permalink |  | Top
 
XemaSab Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:05 PM
Response to Reply #4
7. you win...
you included the break tags to format the address within the cell. :P
Printer Friendly | Permalink |  | Top
 
Ptah Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:05 PM
Response to Original message
6. How's this?
<center>
<table>
<tr>
<td>name one</td><td>name 2</td>
</tr>
<tr>
<td>street one</td><td>street 2</td>
</tr>
<tr>
<td>city,state one</td><td>city,state 2</td>
</tr>
</table>
</center>



:shrug:
Printer Friendly | Permalink |  | Top
 
evlbstrd Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:09 PM
Response to Original message
8. OK, who can do it with CSS?
Not me yet.
Printer Friendly | Permalink |  | Top
 
no name no slogan Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:13 PM
Response to Reply #8
9. I've done it
Edited on Fri Oct-28-05 06:16 PM by no name no slogan
Make two divs of relative width (50% each works), and relative positioning. Float one to the left, float the other to the right.

It can be done, with a little trial and error :)

ON EDIT: It should look something like this (using inline style attributes for each div)

<div id="address1" style="width:50%;position:relative;padding:10px; text-align:left;float:left;">
Name<br />
Address Line 1<br />
Address Line 2<br />
City State Postcode
</div>

<div id="address2" style="width:50%;position:relative;padding:10px;text-align:left;float:right">
Name<br />
Address Line 1<br />
Address Line 2<br />
City State Postcode<br />
</div>
Printer Friendly | Permalink |  | Top
 
ghostsofgiants Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:15 PM
Response to Reply #9
10. I need to learn fucking css...
But I"m so lazy.
Printer Friendly | Permalink |  | Top
 
no name no slogan Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:19 PM
Response to Reply #10
12. "Trial by fire" is the only way
I had to learn it back in 2000 for a class I taught at a community college. It came in handy, and actually helped me land a subsequent job. I redid a 100-page site with it, using XHTML and CSS for 90% of the positioning, with all the pages validating with the W3C Validators, with most pages level AA accessible, too.

If I didn't have to learn it in 48 hours, I never would have touched it. But once you start using it, and seeing how much easier it is than using transparent gifs and tables, you never go back.

Printer Friendly | Permalink |  | Top
 
ghostsofgiants Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:21 PM
Response to Reply #12
13. I've played around with it a little...
But haven't forced myself to really get into it. I want to redo my site with XHTML and CSS, I just need motivation, haha.
Printer Friendly | Permalink |  | Top
 
no name no slogan Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:29 PM
Response to Reply #13
15. One of the best uses of CSS I've seen
www.glish.com.

He does a whole bunch of really complicated layouts-- three- and four-column, with and without headers and footers, all cross-browser and all CSS. Absolutely amazing.
Printer Friendly | Permalink |  | Top
 
ghostsofgiants Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:32 PM
Response to Reply #15
16. Cool, I'll check taht out...
Omphaloskepsis (you might have seen him posting around here) has a bunch of CSS links on his del.icio.us page as well, I just need the motivation, haha.
Printer Friendly | Permalink |  | Top
 
Omphaloskepsis Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:57 PM
Response to Reply #16
19. For the fun of it..
Printer Friendly | Permalink |  | Top
 
BikeWriter Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 08:39 PM
Response to Reply #10
21. I used CSS on some of my forums. It's fascinating to learn.
:)
Printer Friendly | Permalink |  | Top
 
evlbstrd Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:16 PM
Response to Reply #9
11. Dang.
I'm just learning Dreamweaver. I used to use GoLive, and used too many tables. CSS seems to be a much more efficient method.
Printer Friendly | Permalink |  | Top
 
no name no slogan Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:23 PM
Response to Reply #11
14. I'm a CSS junkie
I got hooked on it back in 2000, when I was teaching a web dev class. Back then it was still fairly primative, and browser support was crap, to say the least. At least Netscape Navigator 4 has all but died a death now, since the CSS support in it was crap.

I still do all my sites by hand, doing mock-ups in Dreamweaver and coding everything in either HomeSite or BBEdit (depending on the platform). I mainly do it that way because 1) I'm a total code control freak, and 2) I find that my code is leaner and easier to read than that generated by WYSIWYG tools, and 3) It's easier to to server-side languages (like PHP, ASP and .Net) by hand, as most WYSIWYG tools mangle it.

CSS has the added benefit of making your code more modular, too, which really comes in handy if you migrate your site to a content management system. I've redone a couple sites like this (and am working on a 11,000+ page site right now) and it really does make things much easier to change around and update.

Good luck with Dreamweaver! I used to teach classes in it (back in v.3) and it's still the best WYSIWYG tool out there, IMHO.
Printer Friendly | Permalink |  | Top
 
evlbstrd Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 06:52 PM
Response to Reply #14
18. Some of the work I'm looking at doing involves server side.
As well as content management. I'm not so much of a codehead, myself. But Dreamweaver 8 seems to be an excellent tool. I'm aleady learning a ton.
Printer Friendly | Permalink |  | Top
 
On Par Donating Member (912 posts) Send PM | Profile | Ignore Fri Oct-28-05 06:46 PM
Response to Original message
17. Thanks Everyone. You're Not Only HTML Great, You're Entertaining!
Printer Friendly | Permalink |  | Top
 
Ptah Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Oct-28-05 07:58 PM
Response to Reply #17
20. Glad to offer my suggestion.
I hope you found what you needed.

:hi:
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Fri Apr 19th 2024, 02:49 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC