Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 CSS margin problem with IE
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 01 July 2008 :  06:59:55  Show Profile  Visit HuwR's Homepage  Reply with Quote
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.<
Go to Top of Page

Adjunkten
Starting Member

30 Posts

Posted - 01 July 2008 :  10:50:03  Show Profile  Visit Adjunkten's Homepage  Reply with Quote
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 ?

<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 01 July 2008 :  10:53:14  Show Profile  Visit HuwR's Homepage  Reply with Quote
try just removing the width="100%" from the first table tag<
Go to Top of Page

Adjunkten
Starting Member

30 Posts

Posted - 01 July 2008 :  18:03:31  Show Profile  Visit Adjunkten's Homepage  Reply with Quote
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.

<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 01 July 2008 :  18:40:51  Show Profile  Visit HuwR's Homepage  Reply with Quote
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<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 01 July 2008 :  18:42:26  Show Profile  Visit HuwR's Homepage  Reply with Quote
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.<
Go to Top of Page

Adjunkten
Starting Member

30 Posts

Posted - 02 July 2008 :  16:37:58  Show Profile  Visit Adjunkten's Homepage  Reply with Quote
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 ?



<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 02 July 2008 :  16:47:28  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Is that CSS included (in some way or fashion) on those pages?<
Go to Top of Page

Adjunkten
Starting Member

30 Posts

Posted - 03 July 2008 :  02:33:06  Show Profile  Visit Adjunkten's Homepage  Reply with Quote
No its external - <link rel="stylesheet" type="text/css" href="/2008.css"/><
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 03 July 2008 :  03:03:06  Show Profile  Visit HuwR's Homepage  Reply with Quote
does the table have a class or id ?<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 03 July 2008 :  07:49:37  Show Profile  Visit AnonJr's Homepage  Reply with Quote
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 )<
Go to Top of Page

Adjunkten
Starting Member

30 Posts

Posted - 03 July 2008 :  08:33:49  Show Profile  Visit Adjunkten's Homepage  Reply with Quote
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 03 July 2008 :  08:42:26  Show Profile  Visit HuwR's Homepage  Reply with Quote
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<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 03 July 2008 :  08:52:11  Show Profile  Visit HuwR's Homepage  Reply with Quote
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<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07