473,785 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

html table widths

tolkienarda
316 Contributor
hi all

It's been a long time since i've done actual html code. and i seem to have forgotten how to make <td>'s different widths. for example i want to have a image in the top left taking up 25% of the table and text on the other side taking up 75% and then on the next row have the left colom take 75% and the right take up 25% i dont even know if that is possible following is the code that failed for me.

[HTML]
<table width="100%">
<tr>
<td width="25%"><im g src="../images/image1.jpg"></td>
<td>text lots of text</td>
</tr>
<tr>
<td width="75%">tex t lots of text</td>
<td><img src="../images/image2.jpg"></td>
</tr>
</table>
[/HTML]
Feb 12 '07 #1
2 1327
tolkienarda
316 Contributor
hi all

It's been a long time since i've done actual html code. and i seem to have forgotten how to make <td>'s different widths. for example i want to have a image in the top left taking up 25% of the table and text on the other side taking up 75% and then on the next row have the left colom take 75% and the right take up 25% i dont even know if that is possible following is the code that failed for me.

[HTML]
<table width="100%">
<tr>
<td width="25%"><im g src="../images/image1.jpg"></td>
<td>text lots of text</td>
</tr>
<tr>
<td width="75%">tex t lots of text</td>
<td><img src="../images/image2.jpg"></td>
</tr>
</table>
[/HTML]
ok so i am totaly stupid not my fault i was born that way

[HTML]
<td colspan...>
[/HTML]
Feb 12 '07 #2
AricC
1,892 Recognized Expert Top Contributor
ok so i am totaly stupid not my fault i was born that way

[HTML]
<td colspan...>
[/HTML]
It happens don't forget about rowspan either!
Feb 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3611
by: Raaijmakers, Vincent (IndSys, GE Interlogix) | last post by:
Ok, perhaps a question on a newbie level. I try to create a simple 'write to a console application' where all the items in a string do have a variable size: items = Well, actually, I need to print a table as simple text, nice lined up in a console. So: Item: Value: Another Value:
71
6507
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's a step beyond Notepad (not a WYSIWYG tool). Thanks.
4
26210
by: N. Demos | last post by:
The following code renders as intended in IE (A TABLE, with cells of fixed width and height, inside of a DIV with fixed width and height and overflow set to hidden.) In Firefox, the table cells assume a narrower with than specified. If I comment out the width for the DIV, then the cells render with the correct width and height. Why is this happening? Thanks. Regards, N. Demos
2
2880
by: Andy Flash | last post by:
Hi. I'd like a little help working out what is going on with what should be a simple alignment problem. I have an outer table with a <td> which has an inner table. The <td> specified as width=200 has the inner table which is width=100%
9
35225
by: Veerle | last post by:
Hi, I would like to divide the whole of my html page in 4 equal rectangles using only div tags in my html. The result should look a bit like this site: http://users.pandora.be/rausbauten/menu/static/start.html only there, a table is used to achieve this result. So using 4 div blocks and by setting 2 of them to float left, I already got this result: http://home.scarlet.be/~vv991306/test.html Now I have to set the widths en heigths of...
1
12326
by: Jeronimo Bertran | last post by:
I am creating a table and inserting an iframe inside a cell for which the width depends on the screen size. The table has 7 columns and the fourth column is resized depeding on the screen size... here is my complete definition. <table style="HEIGHT: 472px" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr height="1">
18
30591
by: chimalus | last post by:
I am using a table with no column widths specified, letting the table layout manager do its thing for figuring out the column widths, and this works just fine. Now I want to make the table dynamic. I have added a filtering mechanism (in javascript) that can be used to hide unneeded rows. However, each time I hide or show rows, the column sizes change, and this doesn't look good. Is there a way that I can preserve the column widths...
13
2171
by: kw | last post by:
A new html learner is here. Please help. I write a two column web page. Their widths are both fixed. The left one is a menu and the right one is mainly for content display. I pasted a few lines as the following: #leftcolumn{ background-color: white; clear: left; width: 176px; margin-left: 3px;
6
9925
Markus
by: Markus | last post by:
Ello. I'm trying to set the widths for my first three rows of cells and then have a bottom row with different cell widths. However, the first three rows take on the same widths as the bottom row. <table> <tr> <td width="80%"> ... </td> <td width="20%"> ... </td> </tr>
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10097
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8983
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5518
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.