Author |
Topic  |
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 01 July 2008 : 06:59:55
|
I did a quick view source on your default.asp page and you are not adding the div in the correct place, you should put it immediately after the body tag not inside the main table as you have.< |
 |
|
Adjunkten
Starting Member
30 Posts |
Posted - 01 July 2008 : 10:50:03
|
Yes - I think you're right. I have to get rid of some html before the site header.
The HTML looks like this:
<body>
<a name="top"></a><font face="Bookman Oldstyle, Trebuchet"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> (inc_site_header.asp)
I would like remove the red code.
I found the codelines in the inc_header.asp - but if I simply delete these lines before the 'inc site header' I get an error message.
"<body>" & vbNewLine & _ "<a name=""top""></a><font face=""" & strDefaultFontFace & """>" & vbNewLine if strSiteIntegEnabled = "1" then response.write "<table width=""100%"" border=""" if strSiteBorder = "1" then response.write "1" else response.write "0" end if response.write """ cellspacing=""0"" cellpadding=""0"">" & vbNewLine if strSiteHeader = "1" then response.write " <tr>" & vbNewLine & _ " <td" if strSiteLeft = "1" or strSiteRight = "1" then if strSiteLeft = "1" and strSiteRight = "1" then Response.write " colspan=""3""" else Response.write " colspan=""2""" end if end if response.write ">" %> %>
<!--#include file="inc_site_header.asp"--><%
Can you help me ?
< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 01 July 2008 : 10:53:14
|
try just removing the width="100%" from the first table tag< |
 |
|
Adjunkten
Starting Member
30 Posts |
Posted - 01 July 2008 : 18:03:31
|
Changing table width is not working. No effect at all. 
I guess I'll have to redesign or accept that my forum looks great in Opera and FF and stinks in IE. But the different looks in browser really puzzles me.
And by the way, setting body margins works in IE on all my other pages, which use the same stylesheet.
Here in DK it's time to hit the sack.
Thanks for your time.
< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 01 July 2008 : 18:40:51
|
you need to add your opening div tag after the body tag here "<body>" & vbNewLine & _ then make sure you close it after all the other table tags are closed in your footer< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 01 July 2008 : 18:42:26
|
quote: And by the way, setting body margins works in IE on all my other pages, which use the same stylesheet.
I didn't say you couldn't use margins, I said not to use widths.< |
 |
|
Adjunkten
Starting Member
30 Posts |
Posted - 02 July 2008 : 16:37:58
|
Heureka! - Changed the table width and IE now centers the two tables in a 1000px wide container. Thumbs up Huwr. 
Now I need to solve one last problem.
My topmenu is a simple included unordered list with 4 items, blog, dansk, historie, forum.
CSS:
.topbar ul, {text-align: left; margin: 0; padding: 0;} .topbar li,{ list-style-type: none; display: inline;
I use "display:inline", to make the list go horizontal. Again, it works in FF, Opera and IE except from the forum folder. Maybe because it is inside a table ?
Does anyone know how to "css" a list inside a table ?
< |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 02 July 2008 : 16:47:28
|
Is that CSS included (in some way or fashion) on those pages?< |
 |
|
Adjunkten
Starting Member
30 Posts |
Posted - 03 July 2008 : 02:33:06
|
No its external - <link rel="stylesheet" type="text/css" href="/2008.css"/>< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 03 July 2008 : 03:03:06
|
does the table have a class or id ?< |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 03 July 2008 : 07:49:37
|
Does the link that is in your forum files actually point to the CSS file? (I ask only because its one of those often overlooked mistakes where you copy/paste the code and forget to adjust accordingly... been there, done that )< |
 |
|
Adjunkten
Starting Member
30 Posts |
Posted - 03 July 2008 : 08:33:49
|
HuwR: No. The html :
<body> <font face="Bookman Oldstyle, Trebuchet"> <table width="1000px" align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div class="topbar"> <div class="adjunkten">Adjunktens forum</div> <div class="righttop"><div class="afterdark">after dark</div></div> <div class="topmenu"><ul> <li><a href="/default.asp" title="Til forsiden">Blog</a> |</li>
<li><a href="/dansk.asp" title="Materiale til dansk" name="top">Dansk</a> |</li> <li><a href="/historie.asp" title="Materiale til historie">Historie</a> |</li> <li><a href="/forum/default.asp" title="Adjunktens forum med toptunet debat">Forum</a> |</li> </ul></div> </div></td>
AnonJr. : Well, when I play with the css fonts and colours the changes come through, so... but I've done that one, too < |
Edited by - Adjunkten on 03 July 2008 08:38:29 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 03 July 2008 : 08:42:26
|
not sure then, unless it is just not loading the css file, I did a simple test here and it seems to work fine using your css and html snippit< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 03 July 2008 : 08:52:11
|
it looks to me like it was the erroneus commas that you had in your css, I have tested it and
.topbar ul {text-align: left; margin: 0; padding: 0;} .topbar li{ list-style-type: none; display: inline; }
works fine, but ..
.topbar ul, {text-align: left; margin: 0; padding: 0;} .topbar li,{ list-style-type: none; display: inline; }
does not work< |
 |
|
Topic  |
|