|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
Why did you post this same question in two different forum areas?
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
Quote:
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 |
|
#5
|
|||
|
|||
|
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:
|
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
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.
|
|
#8
|
||||
|
||||
|
Quote:
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;
}
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Table Not Functioning Like Block Element. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|