HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 9th, 2005, 11:46 AM
himeko11 himeko11 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 5 himeko11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 25 sec
Reputation Power: 0
Question Table Not Functioning Like Block Element.

I am currently having problems getting text that appears after a table to appear below it. Right now, it goes next to it until the end of the table, and then resumes under. It's like the table is not acting like the block element it is.

Here is the code:
<table align="left" border="1">
<tr align="left">
<th align="left">testing</th>
<th align="left">testing</th>
</tr>
<tr align="left">
<td align="left">testing</td>
<td align="left">testing</td>
</tr>
</table>

I have tried putting div and paragraph tags around the table, and setting a display attribute to block and table. Neither of these solutions work. Please help.

Thanks.

Reply With Quote
  #2  
Old March 9th, 2005, 11:52 AM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,776 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 27 m 42 sec
Reputation Power: 470
Why did you post this same question in two different forum areas?

Reply With Quote
  #3  
Old March 9th, 2005, 11:57 AM
himeko11 himeko11 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 5 himeko11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 25 sec
Reputation Power: 0
I found out what the Code HTML forum is for, and saw that it was not the proper place for it to be. I would like for a possible solution to be discovered, so I placed a posting in this forum. I tried deleting the thread in the Code HTML forum, however did not see the option to do so.

Reply With Quote
  #4  
Old March 9th, 2005, 12:21 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
Quote:
Originally Posted by himeko11
I am currently having problems getting text that appears after a table to appear below it. Right now, it goes next to it until the end of the table, and then resumes under. It's like the table is not acting like the block element it is.

Here is the code:
<table align="left" border="1">
<tr align="left">
<th align="left">testing</th>
<th align="left">testing</th>
</tr>
<tr align="left">
<td align="left">testing</td>
<td align="left">testing</td>
</tr>
</table>

I have tried putting div and paragraph tags around the table, and setting a display attribute to block and table. Neither of these solutions work. Please help.

Thanks.


Could you post a screen shot, or, even better, post a link to the page you are having difficulty with?
__________________
ShepherdWeb :: Charging Rhino Wizard

I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor.
{Henry David Thoreau}

§ shepherdweb.com
§ fariswheel productions
§ reagan administration

Reply With Quote
  #5  
Old March 9th, 2005, 12:35 PM
himeko11 himeko11 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 5 himeko11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 25 sec
Reputation Power: 0
See the attached JPG (sorry...can't provide a URL...working on an intranet).

Notice how there is a horizontal scrollbar at the bottom of the browser screen, and the text appears to the right of the table, not below as it should.

Please let me know if you need more from me. All help is appreciated.

Quote:
Originally Posted by banker
Could you post a screen shot, or, even better, post a link to the page you are having difficulty with?
Attached Images
File Type: jpg screenshot.jpg (67.9 KB, 37 views)

Reply With Quote
  #6  
Old March 9th, 2005, 12:45 PM
himeko11 himeko11 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 5 himeko11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 25 sec
Reputation Power: 0
UPDATE...

I have a paragraph below the table that is supposed to appear (the code is simple:
<p align="left">
Page Last Updated: March 09, 2005
</p>
)

Now when I put the attribute 'style="clear:both;"' inside that paragraph, then the text goes where it should. However, the parent div tag that has a border stops where the table is.

In Firefox, everything looks the way it should be (stupid IE...).

Now I'm just really confused. I've also attached the code since I can see this may get complicated.
Attached Images
File Type: jpg screenshot02.jpg (41.8 KB, 41 views)
Attached Files
File Type: txt About-HospQuality.txt (9.7 KB, 82 views)

Reply With Quote
  #7  
Old March 9th, 2005, 01:31 PM
himeko11 himeko11 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 5 himeko11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 25 sec
Reputation Power: 0
Thumbs up Solved

I have figured it out. It did not like the fact that there was an align attribute in the table element. Once that align attribute was taken out and moved into a div element, it worked like it should (in both browsers). According to W3C, align is a valid attribute for the table element, however I guess CSS 2.1 doesn't like that. Oh well. Thanks to all who attempted to help.

Reply With Quote
  #8  
Old March 9th, 2005, 02:19 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
Quote:
Originally Posted by himeko11
I have figured it out. It did not like the fact that there was an align attribute in the table element. Once that align attribute was taken out and moved into a div element, it worked like it should (in both browsers). According to W3C, align is a valid attribute for the table element, however I guess CSS 2.1 doesn't like that. Oh well. Thanks to all who attempted to help.


sorry, I was at lunch, I am back now...I guess you got it figured out though.

My next question was going to be about the float element.

Here's tip for using CSS with IE. If you precede your stylesheet rule with "* html" all browsers except IE wil ignore that rule. That way you can write rules that override your overall styles for the things that IE doesn't know how to do!

Example:
Code:
 /* stylesheet.css */
 * html table {
 	position: absolute;
 	top: 20px;
 	left: 100px;
 	width: 400px;
 }
 

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Table Not Functioning Like Block Element.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT