SitePoint Sponsor |
|
User Tag List
Results 1 to 8 of 8
Thread: HTML question with <table> tag
-
Aug 16, 2001, 10:50 #1
- Join Date
- Jun 2001
- Location
- Russia
- Posts
- 107
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
HTML question with <table> tag
I have the following HTML page:
<html>
<head>
<title>Page</title>
</head>
<body>
<table width="100%">
<tr>
<td width="50%">
11111111111111111111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222222222222222222
</td>
<td width="50%">
1111111111
</td>
</table>
</body>
</html>
I wish it to fit the screen 100% (and no more).
And each table data had exactly 50% width.
How can I do it?
-
Aug 16, 2001, 11:01 #2
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The code you posted is correct, just that an unbroken string of characters in cell #1 will prevent your TABLE from being displayed properly.
If that is what you have to work with then you cannot get a proper display.Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Aug 16, 2001, 11:17 #3
- Join Date
- Jun 2001
- Location
- Russia
- Posts
- 107
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hello creole.
I think there must be a solution to make cell #1 and cell #2
50% each.
Look at this forum, what would be if I post a question with a subject like
1111111111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 ?
-
Aug 16, 2001, 14:23 #4
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Look at the forum now that you posted that long string of text. The forum is broken. It's because as far as the browser knows, the long string is all one word.
Now, let me say that if you are using some sort of server side scripting language (PHP/ASP) then yes, there IS a solution. You can read in a string (such as the long number) and split it at a specified length.
That would be something to ask in the Server-Side scripting forum.
Good luckAdobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Aug 16, 2001, 14:44 #5
- Join Date
- Jun 2001
- Location
- Russia
- Posts
- 107
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm using ASP,
Thank you.
Now I know to handle this problem
Thank you again
-
Aug 17, 2001, 06:47 #6
- Join Date
- Jul 2001
- Location
- Berkshire, UK
- Posts
- 7,442
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
daft maybe but shouldn't there be a </TR> tag at the end also?
-
Aug 17, 2001, 09:29 #7
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Good catch Sarah, I'm sure that he just left it out when typing it up here.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Aug 17, 2001, 09:35 #8
- Join Date
- Jul 2001
- Location
- Berkshire, UK
- Posts
- 7,442
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
I know wasn't sure but hey can't but help can it!
Bookmarks