T O P I C R E V I E W |
Adjunkten |
Posted - 01 July 2008 : 02:14:52 I have site integrated my forum but body margins won't work in IE7. It looks fine in Firefox and Opera.
My body-CSS:
body { max-width: 1000px; min-width: 800px; margin: 0 auto;}
I suspect the tablecode is causing the problem, since margins are OK on pages outside my forum folder. I tried to "css" the table without succes. Do you know the trick?
http://www.adjunkten.dk/forum/default.asp
<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" />< |
15 L A T E S T R E P L I E S (Newest First) |
HuwR |
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< |
HuwR |
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< |
Adjunkten |
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 < |
AnonJr |
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 )< |
HuwR |
Posted - 03 July 2008 : 03:03:06 does the table have a class or id ?< |
Adjunkten |
Posted - 03 July 2008 : 02:33:06 No its external - <link rel="stylesheet" type="text/css" href="/2008.css"/>< |
AnonJr |
Posted - 02 July 2008 : 16:47:28 Is that CSS included (in some way or fashion) on those pages?< |
Adjunkten |
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 ?
< |
HuwR |
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.< |
HuwR |
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< |
Adjunkten |
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 |
Posted - 01 July 2008 : 10:53:14 try just removing the width="100%" from the first table tag< |
Adjunkten |
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 |
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.< |
HuwR |
Posted - 01 July 2008 : 06:57:14 I'm afraid you will need to get some help from Image forums as you are using their version of the forum not a base version, so unfortunately I can not comment on the markup/code used in your forum.< |