Q: I want to do this on my last project.
Goal this website (see example below):
Company Name (space) (space) (space) (space) (space) (space) (space) (space) City / State
———————————————– – ———————————————— – ————–
What it looks like in HTML:
u003cbu003e Company u003c / bu003e u0026 nbsp; nbsp u0026, u0026 nbsp; u0026 nbsp; (etc.) u003cbu003e City / State u003c / bu003e
Is there a simpler way of coding HTML without many of the u0026 nbsp;?
(Yes I know there is no space between the u0026 nbsp; – but . somehow when I first
the thread post . they were gone. I wanted this question clearly as possible) When 0.
Best Answer: Ok as expert advice stop using HTML 3.2 and upgrade your standards. Its not good having a form element outside the html element. Ok that aside.
<form action="mailto:email@example.com" method="post" enctype="text/plain"> will work but dont rely on it as it depends if client machine has an email client installed and setup.
You can use PHP code to recieve the form and then email on the clients behalf.
<form action="action.php" method="post" enctype="text/plain">
and in you action.php somthing like
"Contact Us Form",
"From: firstname.lastname@example.org" );
Re:Tables are a bad way to go, but pretty common so I guess you can't really say much about them.
Clear gif? Come on, this is text arrangement, a clear gif is sick! (AT forums use clear gifs in some places…ick)
As far as CSS, it's hard to say, and depends on the rest of your page. Usually I'd put them in a div and align one to the left and one to the right.
It's 2003, learn some CSS! (http://www.w3schools.com/css/css_intro.asp)
Re:and if you wanted to use a table:
<!– very simple table – change your width as needed –>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<!– I use a spacer so I can adjust it where I need to –>
<td><img src="clear.gif" height="1" width="25"></td>
<td>Company Name 1</td>
<td>Company Name 2</td>
<td>Company Name 3</td>
Re:you can also use a clear gif. just put your gif like this
<b>Company Name<img src="your directory/clear.gif" height="1" width="25">City/State</b>
I will agree that using a table is the absoute best way to go. Although in order for your table to have a certain width you might need to add that clear gif to the top or bottom of a table in an empty cell.
Re:Someone already gave you an answer. Use a table.
Re:… Thanks for ALL your input!
However… I'm not familiar with CSS…
What's the coding as to my question?
- Thanks in advance.
Re:Use CSS, that's what it's for. (you can't do webdev without css anymore!)