Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Dumb HTMl Problem [Could be CSS]

Dumb HTMl Problem [Could be CSS]

Reply
  #1  
Old 05-23-07, 12:16 PM
_net's Avatar
_net _net is offline
Newbie Coder
 
Join Date: Apr 2007
Location: Local Disk C:
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Dumb HTMl Problem [Could be CSS]

Hiya

Okay, something has been bugging me horrible lately and its begining to confuse me.
My issue is concerning my website display on FireFox and Internet Explorer.
Ok, I have this page. Memberslist.php. When i view this page on Firefox, its perfect, its good works nice and is nicely aligned and everything.
But, when i view it on Internet Explorer; the header is shown(banner and top navigation)...the content is still in the same area but everything else in the page is miss aligned (The left navigation is all the way down there).

My website template is simple; there is a header.html and a footer.php
and here is how it's set;
PHP Code:
include("header.html");

/* My Page Content Which is one simple html table */

include("footer.html"); 
So i thought it was because of the page content that it was screwing me up like that, so i took off everything on the page and instead put a simple Text paragraph. It was good, it work well. So i erased the text and made a new test table. Then it got screwed up agian. Its really annoying. Does anyone know any problems with this.

****ing IE. why can't they just be more like Firefox. Disgusting ****.
Reply With Quote
  #2  
Old 05-23-07, 12:23 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community VIP
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 2,724
Thanks: 0
Thanked 0 Times in 0 Posts
hmmmm, sounds familiar

we all had, and have, those problems. Would you mind posting your css and html code? that's gonna help us solve your problem
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

If you want to add me on any IM, pm me first
Reply With Quote
  #3  
Old 05-23-07, 12:46 PM
_net's Avatar
_net _net is offline
Newbie Coder
 
Join Date: Apr 2007
Location: Local Disk C:
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
My html code for the page itself is:
HTML Code:
<table id='memberslist' width='900'><tr>
<td bgcolor='#51A8FF' width=20>ID</td>
<td bgcolor=#51A8FF width=70>Username</td>
<td bgcolor=#51A8FF width=80>Character</td>
<td bgcolor=#51A8FF width=65>Location</td>
<td bgcolor=#51A8FF width=85>Position</td>
<td bgcolor=#51A8FF width=90>Last Visit</td>
<td bgcolor=#51A8FF width=100>Actions</td>
</tr>

<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td>
</tr>
</table>
css Code:
  1. <!-- The Css Memberslist is the followings: --->
  2. #memberslist {
  3.     font-family: verdana;
  4. }
  5.  
  6. <!--- Site CSS is this: --->
  7. @charset "iso-8859-1";
  8.  
  9. .clear
  10. {
  11.     clear: both;
  12.     padding-bottom: 1px;   
  13.     margin-bottom: -1px;   
  14. }
  15. .hide, .divider
  16. {
  17.     display: none;
  18. }
  19. .inside
  20. {
  21.     padding: 0 1em;
  22. }
  23.  
  24. .newstitle {
  25.     border: 1px #CC3300 solid;
  26.     background-color: #6699FF;
  27.     margin: 2px;
  28.     padding-top: 15px;
  29.     font-weight: bold;
  30.     text-align: center;
  31.     color: #000000;
  32. }
  33.  
  34.  
  35. ul, ol, dl, p, h1, h2, h3, h4, h5, h6
  36. {
  37.     margin-top: 14px;
  38.     margin-bottom: 14px;
  39.     padding-top: 0;
  40.     padding-bottom: 0;
  41. }
  42. h1
  43. {
  44.     font-size: 220%;
  45. }
  46. h2
  47. {
  48.     font-size: 190%;
  49. }
  50. h3
  51. {
  52.     font-size: 160%;
  53. }
  54. h4
  55. {
  56.     font-size: 130%;
  57. }
  58. h5
  59. {
  60.     font-size: 100%;
  61. }
  62. h6
  63. {
  64.     font-size: 70%;
  65. }
  66.  
  67. /* alter some HTML elements' default style
  68. */
  69. a, a:link, a:visited, a:active
  70. {
  71.     text-decoration: none;
  72. }
  73. a:hover
  74. {
  75.     text-decoration: none;
  76. }
  77. a img
  78. {
  79.     border-width: 0;
  80. }
  81. code
  82. {
  83.     font-family: "Courier New", Courier, monospace;
  84. }
  85. label {
  86.     display: block;
  87.     width: 150px;
  88.     float: left;
  89.     /* margin-bottom: 10px; */
  90. }
  91.  
  92. table
  93. {
  94.     font-size: 100%;
  95. }
  96. td, th
  97. {
  98.     vertical-align: top;
  99. }
  100. span.strike
  101. {
  102.     text-decoration: line-through;
  103. }
  104.  
  105. br { clear: left; }
  106. body
  107. {
  108.     padding: 70px 0 20px 0;
  109.     margin: 0 3%;
  110.     min-width: 35em;   
  111.     background-color: #fff;
  112.     color: #000;
  113.     font-size: 100.1%;
  114. }
  115. #editprofile {
  116.     background-color: #FFF0D9; border: 1px solid #F4C535;
  117.     padding: 25px;
  118.     font-family: Verdana, Tahoma, "Comic Sans MS", sans-serif;
  119. }
  120. #editprofile h1 { font-family: inherit; text-align: center; font-size: 10px; font-size: large; }
  121. #editprofilepass {
  122.     background-color: #C6F0D0;
  123.     border-color: #84DF98;
  124.     font-family: Verdana, Arial, Helvetica, sans-serif;
  125. }
  126.  
  127.  
  128. #editprofilepass input {
  129.     margin-top: 2px;
  130. }
  131. #pageWrapper
  132. {
  133.     border: solid 1px #000;
  134.     border-width: 1px;
  135.     margin: 0 10px 0 40px;  /* set side margins here 'cause IE doesn't like it set
  136.                    on the body element */
  137.     width: auto;
  138.     background-color: #ccc;
  139.     color: #000;
  140. }
  141. #outerColumnContainer
  142. {
  143.     /* reserves space for the left and right columns. you can use either
  144.      * padding, margins, or borders, depending on your needs. however you
  145.      * can use the border method to create a background color for both left
  146.      * and right columns
  147.      */
  148.     padding: 0 0 0 135px;
  149. }
  150. #innerColumnContainer
  151. {
  152.     width: 100%;
  153.     z-index: 1;
  154. }
  155. #middleColumn
  156. {
  157.     float: right;
  158.     margin: 0 0 0 -1px;
  159.     width: 100%;
  160.     z-index: 1;
  161. }
  162. #masthead
  163. {
  164.     background-color: #ddd;
  165.     color: #000;
  166.     border: solid 1px #000;
  167.     left: auto;
  168.     margin: 0 10px -25px 30px;
  169.     padding: 0 10px;
  170.     position: relative;
  171.     text-align: center;
  172.     top: -25px;
  173.     width: auto;
  174.     /* \*/
  175.         position: static;
  176.         margin-top: -25px;
  177.         margin-bottom: 0;
  178.         top: auto;
  179.  
  180. }
  181. #masthead h1
  182. {
  183.     font-size: 150%;
  184.     left: auto;
  185.     margin: 0 0 -1em 0;
  186.     padding: 0;
  187.     position: relative;
  188.     text-align: right;
  189.     top: -1em;
  190.     width: 100%;
  191. }
  192. #masthead h2
  193. {
  194.     color: #000;
  195.     font-size: 400%;
  196.     line-height: 1em;
  197.     margin: 0 0 -0.14em 0;
  198.     padding: 0;
  199.     text-align: center;
  200. }
  201. #content
  202. {
  203.     background-color: #eee;
  204.     color: #000;
  205.     border: solid 1px #333;
  206.     margin: 15px 10px 0 0;
  207.     padding: 0 10px 0 40px;
  208. }
  209. #content h3.pageTitle
  210. {
  211.     border: solid 1px #000;
  212.     border-width: 0 0 1px 0;
  213.     font-size: 200%;
  214.     margin: 0;
  215.     padding: 10px 15px;
  216. }
  217. #contentColumnContainer
  218. {
  219.     margin: 10px 30% 10px 70px;
  220.     width: auto; height: 500px;
  221.     border: solid 1px #000;
  222. }
  223. #innerContent
  224. {
  225.     float: left;
  226.     margin: 0 -1px 0 0;
  227.     width: 100%;
  228. }
  229. #rightColumn
  230. {
  231.  
  232.     float: right;
  233.     width: 42.85%;
  234.     margin: 0 -42.85% 0 1px;
  235. }
  236. #leftColumn
  237. {
  238.     float: left;
  239.     left: auto;  /* reset v4 css */
  240.     margin: -50px -24px 0 -155px;
  241.     position: relative/* reset v4 css */
  242.     top: auto;    /* reset v4 css */
  243.     width: 180px;
  244.     z-index: 4;
  245. }
  246. #leftColumn .inside
  247. {
  248.     padding: 0;
  249. }
  250. #cornerLogo
  251. {
  252.     width: 180px;
  253.     height: 171px;
  254.     margin: 0 -11px;
  255.     overflow: visible;
  256.     position: relative;
  257.     z-index: 10;
  258. }
  259. #cornerLogo .placeHolder
  260. {
  261.     width: 200px;
  262.     height: 100%;
  263.     border: solid 1px #000;
  264.     background-color: #ddd;
  265.     color: #000;
  266.  
  267.     position: absolute;
  268.     top: auto;
  269.     left: 0;
  270. }
  271. #cornerLogo .placeHolder p
  272. {
  273.     text-align: center;
  274. }
  275. #loginbox {
  276.     width: 100px;
  277.      margin-left: 5px;
  278.      margin-top: 5px;
  279.     background-color: #30615B; color: #FFFFFF;
  280.     border: 1px solid #6C9;
  281. }
  282.    
  283. .leftBlock
  284. {
  285.     background-color: #ddd;
  286.     border: solid 1px #000;
  287.     margin: 25px 0;
  288.     padding: 0 5px;
  289.     z-index: 9;
  290.     min-width: 0;
  291.     font-weight: normal;
  292. }
  293. .leftBlock .vnav
  294. {
  295.     margin: -1px 0 5px 0;
  296. }
  297. .leftBlock h3
  298. {
  299.     background-color: #ddd;
  300.     color: #000;
  301.     border: solid 1px #000;
  302.     font-size: 120%;
  303.     margin: -10px 0 0 0;
  304.     padding: 2px 6px;
  305. }
  306. #mainMenu
  307. {
  308.     margin-top: -15px;
  309. }
  310. #mainMenu .vnav
  311. {
  312.     margin-top: 23px;
  313. }
  314. .leftTextBlock
  315. {
  316.     font-size: 88%;
  317.     padding: 0 7px;
  318. }
  319. .leftTextBlock p
  320. {
  321.     margin: 5px 0;
  322. }
  323. #footer
  324. {
  325.     clear: right;
  326.     padding: 10px 24px 10px 34px;
  327. }
  328. #footer p
  329. {
  330.     padding: 0;
  331.     margin: 0;
  332. }
  333.  
  334.  
  335. /* vertical navigation stuff. mostly exactly as seen in the vnav.css styleheet
  336. */
  337. .newsHeader {
  338.     background-color: #cdc;
  339.     color: #000;
  340.     border: solid 1px #000;
  341.     margin: 25px 0;
  342.     padding: 0 60px 10px;
  343.     z-index: 9;
  344.     min-width: 0;
  345.     font-weight: normal;
  346. }
  347. #newsmenu
  348. {
  349.     margin-top: 15px;
  350. }
  351. .vnav
  352. {
  353.     margin: 10px 0;
  354. }
  355. .vnav ul, .vnav ul li
  356. {
  357.     margin: 0;
  358.     padding: 0;
  359.     list-style-type: none;
  360.     display: block;
  361. }
  362. .vnav ul
  363. {
  364.     border: solid 1px #000;
  365.     border-bottom-width: 0;
  366. }
  367. .vnav ul li
  368. {
  369.     border-bottom: solid 1px #000;
  370. }
  371. .vnav ul li, .vnav ul li a
  372. {
  373.     margin: 0;
  374.     padding: 0;
  375.     line-height: normal;
  376.     display: block;
  377.     font-size: 11px;
  378.     font-family: Verdana, Arial, Helvetica, sans-serif;
  379. }
  380. .vnav ul li a
  381. {
  382.     display: block;
  383.     padding: 2px 5px 3px 5px;
  384.     min-width: 0;   /* hack to force hasLayout in IE7 */
  385. }
  386. .vnav ul li a, .vnav ul li a:link, .vnav ul li a:visited, .vnav ul li a:active, .vnav ul li a:hover
  387. {
  388.     text-decoration: none;
  389.     cursor: pointer;
  390. }
  391. .vnav h3
  392. {
  393.     margin-bottom: 0;
  394.     padding-bottom: 0;
  395.     font-size: 126%;
  396. }
  397.  
  398. .hnav
  399. {
  400.     border: solid 1px #000;
  401.     margin: 0;
  402.     padding: 3px 0 4px 0;
  403.     white-space: nowrap;
  404. }
  405. .hnav ul span.divider
  406. {
  407.     display: none;
  408. }
  409. * html .HNAV
  410. {
  411.     padding: 0
  412. }
  413. .hnav ul
  414. {
  415.     text-align: center;
  416.     list-style-type: none;
  417.     line-height: normal;
  418.     margin: 0;
  419.     padding: 0;
  420. }
  421. .hnav ul li
  422. {
  423.     display: inline;
  424.     white-space: nowrap;
  425.     margin: 0;
  426. }
  427. .hnav ul li a, .hnav ul li a:link, .hnav ul li a:visited, .hnav ul li a:active, .hnav ul li a:hover
  428. {
  429.     margin: 0 -1px 0 0;
  430.     padding: 3px 10px 4px 10px;
  431.     border-left: solid 1px #000;
  432.     border-right: solid 1px #000;
  433.     cursor: pointer;
  434. }
  435. .hnav ul li a, .hnav ul li a:link, .hnav ul li a:visited, .hnav ul li a:active, .hnav ul li a:hover
  436. {
  437.     text-decoration: none;
  438. }
  439.  
  440.  
  441. .bottomBorderOnly
  442. {
  443.     border-width: 0 0 1px 0;
  444. }
  445.  
  446.  
  447. * html #masthead,
  448. * html #pminbox,
  449. * html #memberslist,
  450. * html #masthead h2,
  451. * html #leftColumn,
  452.        .leftBlock h3,
  453. * html #rightColumn
  454. {
  455.     position: relative;
  456. }
  457. * html #innerColumnContainer
  458. {
  459.     /* \*/
  460.         position: relative;
  461. }
  462. * html #masthead,
  463. * html #content,
  464. * html #contentColumnContainer,
  465. * html .vnav,
  466. * html .vnav ul li a/**/,
  467. * html .hnav,
  468. * html .hnav ul li a,
  469. * html .leftBlock,
  470. * html .leftBlock h3
  471. * html .newstitle
  472. {
  473.     /* \*/
  474.         height: 0.01%;
  475.     /* the empty comment in the .vnav ul li a selector is to keep that
  476.      * particular selector from being processed by IE5.0/Win
  477.      */
  478.     min-width: 0;
  479. }
  480. * html div,
  481. {
  482.     overflow: visible;
  483. }
  484. * html body
  485. {
  486.     word-wrap: break-word;
  487. }

Here is my header file
HTML Code:
<div class="hnav bottomBorderOnly">
	<ul class="nshnav"
		><li><a href="index.php">Main</a><span class="divider"> : </span></li>
		<li><a href="goto.php?mod=viewprofile">View Profile</a><span class="divider"> : </span></li>
		<li><a href="goto.php?id=news">Updates</a><span class="divider"> : </span></li>
  </ul>

	<hr class="hide">
</div>

<?php 
} 
?>

							<div id="contentColumnContainer" style="border: 0; height: auto; position:relative;">
and footer:
HTML Code:
<div class="clear"></div>
							</div>

<!-- Footer Stuff. like GCX Links.   --->
						</div>
					</div>
I have a bit more in the header (which is the title and all), and same for footer i have the footer notes but thats about it.

Last edited by Nico; 05-23-07 at 12:51 PM.
Reply With Quote
  #4  
Old 05-23-07, 04:52 PM
staticfire's Avatar
staticfire staticfire is offline
Wannabe Coder
 
Join Date: May 2007
Location: Stockton, England
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
I haven't got a clue if this will make a difference but instead of include you could use require. Like this:

PHP Code:
require 'header.html';

require 
'footer.html'
I don't think it makes a difference but it's worth a try.
__________________
Visit http://www.staticfire.co.uk
Reply With Quote
  #5  
Old 05-23-07, 04:57 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 7,536
Thanks: 5
Thanked 20 Times in 18 Posts
The only difference between include() and require() is the error they produce on failure.
Reply With Quote
  #6  
Old 05-23-07, 06:01 PM
staticfire's Avatar
staticfire staticfire is offline
Wannabe Coder
 
Join Date: May 2007
Location: Stockton, England
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
I didn't think it would
__________________
Visit http://www.staticfire.co.uk
Reply With Quote
  #7  
Old 05-24-07, 11:03 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 2,654
Thanks: 0
Thanked 21 Times in 21 Posts
From what you are saying about erasing the table and entering just plain text and then everything looked good, but when erasing the text and putting the table in again caused everything to screw-up; I would suggest putting the table inside a <div> or <span> or <p> and see if that causes the table to be treated like plain text. Also the combined width of the <td>'s do not add up to the width of the <table>. I would suggest removing the width in the <table> element and let the <td>'s dictate the width. And if the table must take up 900px in width, make the width of an outer <div> or <span> 900px and position the table in it.
__________________
Jerry Broughton

Last edited by job0107; 05-24-07 at 11:14 AM.
Reply With Quote
  #8  
Old 05-25-07, 05:51 AM
Vicious's Avatar
Vicious Vicious is offline
Junior Code Guru
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
In the HTML of your table, I see 2 rows:
the first one has 7 cells
the last one has only 5 cells

Perhaps that is the reason?

If that doesn't help, please post the link to the page, so I can see. I don't feel like compiling a PHP page from what you have posted in your 2nd post.
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 11:25 AM
senting html mail with attachment in php problem netlovers PHP 3 11-29-06 08:10 AM
HTML table = Background Image versus Image problem Mickoes HTML/XHTML/XML 2 02-27-06 02:43 PM
problem sending html email + image dflip PHP 2 05-08-05 01:39 PM
Can anyone help me ? (problem using php variables in html db insert code) chronic_ PHP 2 06-13-04 12:19 PM


All times are GMT -5. The time now is 11:32 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 (Unregistered)