Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to change table width?
Old 02-18-2007, 08:47 AM How to change table width?
Junior Talker

Posts: 1
Trades: 0
I am trying to modify a template navigation bar. It has 4 links like Home, About Us etc. What I would like to end up with is 8 links (not sure what you call these things). So I figured all I would need to do is cut the "width" in half for each of the links and then add 4 more. This isn't working
For example, I changed the td width="137" to "68", width 150 to 75 etc.
If anyone could help me out, I would appreciate it.

<table cellpadding="0" cellspacing="0" border="0" height="24" width="667" id="table2">
<tr>
<td width="10" height="24" align="center">
<div style="padding-left:3px; padding-top:0px">
&nbsp;</div>
</td>
<td width="137" height="24" align="center" bgcolor="#E0EBE9">
<a class="blacktext" href="index.html">
<span style="text-decoration: none; font-weight:700">Home</span></a></td>
<td width="10" height="24" align="center" bgcolor="#E0EBE9">
<font color="#486962"><b>|</b></font></td>
<td width="150" height="24" align="center" bgcolor="#E0EBE9">
<b>
<span style="text-decoration: none">
<font style="font-size: 9pt">Articles</font></span></b></td>
<td width="10" height="24" align="center" bgcolor="#E0EBE9">
<font color="#486962"><b>|</b></font></td>
<td width="145" height="24" align="center" bgcolor="#E0EBE9">
<b>
<span style="font-size: 9pt; text-decoration: none">Contact Us</span></b></td>
<td width="10" height="24" align="center" bgcolor="#E0EBE9">
<font color="#486962"><b>|</b></font></td>
<td width="158" height="24" align="center" bgcolor="#E0EBE9">
<b>
<span style="font-size: 9pt; text-decoration: none">About Us</span></b></td>
<td width="10" height="24" align="center">&nbsp;
</td>
</tr>
</table>

Thanks,
Zeek
zeekstern is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-18-2007, 09:16 AM Re: How to change table width?
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
Trades: 0
Split last cell into four columns and then change table width.
You have also columns with one vertical line (some divider).

Better solution: use CSS for navigation links....something like:

<div id="menuBar">
<ul>
<li>Menu1</li>
<li>Menu2</li>
<li>Menu3</li>
<li>Menu4</li>
<li>Menu....</li>
</ul>
</div>

After that, display inline, play around with a:hover an li a....

Last edited by moondog; 02-18-2007 at 09:19 AM..
moondog is offline
Reply With Quote
View Public Profile
 
Old 02-19-2007, 04:18 AM Re: How to change table width?
Novice Talker

Posts: 13
Name: Bjorn Enki
Location: Los Angeles, CA
Trades: 0
<td width="137" height="24" align="center" bgcolor="#E0EBE9">
<a class="blacktext" href="index.html">
<span style="text-decoration: none; font-weight:700">Home</span></a></td>
<td width="10" height="24" align="center" bgcolor="#E0EBE9">
<font color="#486962"><b>|</b></font></td>

These are lines 8-12 of your code.

Paste these lines after line 12 and efit the href= and "Home" to change the text and it's link destination. You can paste it three times consecutively to create three more links for example, however the above solution is definitely a better one.
__________________
Bjorn Enki Gjesdal -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
bjornenki is offline
Reply With Quote
View Public Profile Visit bjornenki's homepage!
 
Reply     « Reply to How to change table width?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31585 seconds with 12 queries