Repoman013
02-13-2009, 09:50 AM
Hi all,
I made a rss feed block for my portal page and when it comes to position the feed is nicely centered in Firefox but in IE7 it is way off.
I've searched the interweb and also these forums but could not find a solution to my problem.
Below are some pics to clarify my problem along with the code I used.
Firefox - Correct position
http://img7.imageshack.us/img7/889/77444449me6.gif
IE7 - Wrong position
http://img132.imageshack.us/img132/9527/18846265hg9.gif
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Rss-feed</title>
<script type="text/javascript" src="javascript/rsspausescroller.js"></script>
<style type="text/css">
.container {
margin: 0;
padding: 0;
background: url(images/hdr_mid2.gif) top left repeat-x;
white-space: nowrap;
height: 27px;
width: 100%;
text-align: center;
}
.left {
background: url(images/hdr_left2.gif) top left no-repeat;
}
.right {
background: url(images/hdr_right2.gif) top right no-repeat;
padding-top: 8px;
height: 19px;
}
#pscroller1 {
width: 640px;
height: 18px;
border: none;
padding: 0px;
background-color: transparent;
text-align: center;
}
.rssclass .rsstitle {
font-weight: bold;
}
.rssclass .rssdate {
color: gray;
font-size: 85%;
}
.rssclass a {
text-decoration: none;
}
.rssfeed {
margin: 0;
padding: 0;
float: right;
white-space: nowrap;
}
</style>
</head>
<body>
<div class="container">
<div class="left">
<div class="right"><script type="text/javascript">new rsspausescroller("wor", "pscroller1", "rssclass", 3500, "_new")</script></div>
</div>
</div>
</body>
</html>
I made a rss feed block for my portal page and when it comes to position the feed is nicely centered in Firefox but in IE7 it is way off.
I've searched the interweb and also these forums but could not find a solution to my problem.
Below are some pics to clarify my problem along with the code I used.
Firefox - Correct position
http://img7.imageshack.us/img7/889/77444449me6.gif
IE7 - Wrong position
http://img132.imageshack.us/img132/9527/18846265hg9.gif
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Rss-feed</title>
<script type="text/javascript" src="javascript/rsspausescroller.js"></script>
<style type="text/css">
.container {
margin: 0;
padding: 0;
background: url(images/hdr_mid2.gif) top left repeat-x;
white-space: nowrap;
height: 27px;
width: 100%;
text-align: center;
}
.left {
background: url(images/hdr_left2.gif) top left no-repeat;
}
.right {
background: url(images/hdr_right2.gif) top right no-repeat;
padding-top: 8px;
height: 19px;
}
#pscroller1 {
width: 640px;
height: 18px;
border: none;
padding: 0px;
background-color: transparent;
text-align: center;
}
.rssclass .rsstitle {
font-weight: bold;
}
.rssclass .rssdate {
color: gray;
font-size: 85%;
}
.rssclass a {
text-decoration: none;
}
.rssfeed {
margin: 0;
padding: 0;
float: right;
white-space: nowrap;
}
</style>
</head>
<body>
<div class="container">
<div class="left">
<div class="right"><script type="text/javascript">new rsspausescroller("wor", "pscroller1", "rssclass", 3500, "_new")</script></div>
</div>
</div>
</body>
</html>