Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
DIV positioning and Firefox vs. IE, Opera issues
Old 03-19-2005, 01:10 PM DIV positioning and Firefox vs. IE, Opera issues
Average Talker

Posts: 25
Trades: 0
I'm in the process of trying to convert my html table based website (The Joke Jukebox ) to a CSS positioned layout.

I've made some progress, but I am having some issues. First, the positoning of the category listing appears correctly in IE and Opera, but Firefox seems to be having issue with it. The sidebar_head1 Random Joke appears to start in the top left corner rather than under the header portion. Is there something I'm missing, or is there a Firefox hack that I need to employ to fix this?

Being the CSS novice that I am, I am not sure how to get the 'main' div to be positoned to the right of the category menu on the left. This data appears immediately after the category listings.


If you could, please take a look at this link or the following code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
body {
	margin: 0;
	padding: 0;
	background-image:url(images/bg.gif);background-repeat:repeat-x;
	}

.sidebar_head1 { background: #0000E7 url(/images/sidebar_head-left.gif) no-repeat top left; }

.sidebar_head2 {
    background: url(/images/sidebar_head-right.gif) no-repeat top right;
    font-family: Arial, Verdana, sans-serif;
    font-size: 8pt;
    font-weight: bold;
    color: #FFF;
    padding: 2px 2px 2px 5px;
    }

.sidebar_content {
    background-color: #F1F3F7;
    border: 1px solid #0000E7;
    font-size: 8pt;
    font-weight: bold;
    color: #3C3F45;
    padding: 2px;
	}


ul.cat {
	list-style: none;
	margin-left: 5px;
	padding-left: 1em;
	text-indent: -1em;
	line-height: 1.3em;
	}

li {
	font-family: Arial, Verdana, sans-serif;
	font-size: 8pt;
	font-weight: bold;
	}


-->
</style>
</head>

<body>

<center>
<div style="text-align:center;width:800px;">
	<div style="margin:0 auto;text-align:left;">
		<img src="images/logo.gif" alt="" style="float:left;" />

		<div style="float:left;width:480px;height:64px;padding:3px">
                Google ad code here.
		</div>
		<div style="float:left;border:0;">
			<form method="post" action="search.php" style="display:inline;">
				<img src="images/search.gif" style="float:left;" />&nbsp;
				<input type="text" name="search" />
				<input type="submit" value="Go" />
			</form>
		</div>
	</div>
</div>
</center>

<div style="width: 15%;">
		<div class="sidebar_head1"  align="center" ><div class="sidebar_head2">
				  Random Joke
				</div></div>
				<div class="sidebar_content" id="randomjoke"  align="center">
					<a href="/jokes/797.php">Efficiency expert</a>

					<br />
				</div>

				<br />

				<div class="sidebar_head1"  align="center"><div class="sidebar_head2">
					Joke Categories
				</div></div>

				<div class="sidebar_content"   align="left">
					<ul class="cat">

					<li><a href="/category/28.php">&bull; Animal Antics</a></li>
					<li><a href="/category/1.php">&bull; Bar and Drinking</a></li>
					<li><a href="/category/2.php">&bull; Battle of the Sexes</a></li>
                                        The rest of the list continues here.
                 		</ul>

				</div>
</div>
<div class="clear">&nbsp;</div>
<div class="main" style="width:70%;">
I'd like this text in the white area below the blue bar. But to the right of the category listings.
</div>

</body>
</html>
Your assistance is greatly appreciated.
__________________
Check out my joke site
Please login or register to view this content. Registration is FREE
Dinki is offline
Reply With Quote
View Public Profile Visit Dinki's homepage!
 
 
Register now for full access!
Reply     « Reply to DIV positioning and Firefox vs. IE, Opera issues
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.78312 seconds with 12 queries