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.

CSS Forum


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



Reply
Old 08-05-2007, 08:07 PM Layout Problems
FutileSoul's Avatar
Ultra Talker

Posts: 383
Location: Michigan
Trades: 0
the site i am working on now, http://www.mangregation.com is giving me a hard time. I have spent hours trying to get it to look correct, but i cannot figure it out, i tried recoding a bunch of it, now it looks the same in both IE and FF, but it is messed up in both.
help would be greatly appreciated.

My code for index.php
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 profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php bloginfo('name'); ?>
<?php if ( is_single() ) { ?>
&raquo;Blog Archive
<?php } ?>
<?php wp_title(); ?>
</title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php wp_head(); ?>
<style type="text/css" media="screen">


body
{ background: #ffffff; color: #000000; font-family:  veranda;
	position:absolute;
	left:50%;
	width:780px;
	height:100%;
        margin-top:0px;
	margin-left:-390px;
	padding:0px;
	border:none;


        background-repeat: repeat-y;}





#banner { width: 780px; height: 85px; position: absolute; top: 0px; left: 0px; margin: 0px;  background-repeat: no-repeat; background-image: url('<?php bloginfo('template_directory'); ?>/images/banner.gif');}

#home { width: 133px; height: 29px; position: absolute;  top: 85px; left: 0px; margin: 0px;  background-repeat: no-repeat; }

#forums { width: 95px; height: 29px; position: absolute;  top: 85px; left: 133px; margin: 0px;  background-repeat: no-repeat; }

#contact { width: 119px; height: 29px; position: absolute;  top: 85px; left: 228px; margin: 0px;  background-repeat: no-repeat;}

#about { width: 136px; height: 29px; position: absolute;  top: 85px; left: 347px; margin: 0px;  background-repeat: no-repeat; }

#right { width: 297px; height: 29px; position: absolute;  top: 85px; left: 483px; margin: 0px;  background-repeat: no-repeat; }

#main { width: 602px; height: 100%; position: absolute;  top: 114px; left: 0px; margin: 0px;  background-repeat: no-repeat; }

#nav { width: 178px; height: 100%; position: absolute;  top: 114px; left: 602px; margin: 0px;  background-repeat: no-repeat; }

a:link, a:visited { color: #616161; text-decoration: none; font-weight: bold; border-bottom: 0px solid #616161;}
a:hover { color: #898989; border-bottom: 0px solid #898989; font-weight: bold;}

</style>
</head>






<body>

<div id="banner">
</div>

<div id="home">
<a href="http://www.mangregation.com"><img src="images/home.gif" border="0"></a>
</div>

<div id="forums">
<a href="http://www.mangregation.com/forums"><img src="images/forums.gif" border="0"></a>
</div>

<div id="contact">
<a href="http://www.mangregation.com/contact"><img src="images/contactus.gif" border="0"></a>
</div>

<div id="about">
<a href="http://www.mangregation.com/about"><img src="images/aboutus.gif" border="0"></a>
</div>

<div id="right">
<img src="images/right.gif">
</div>






<div id="main">



<!-- the loop -->

<table width="602px">
<tr><td background="images/maintop.gif" width="602px" height="49px">

<?php if (have_posts()) :?>
<?php $postCount=0; ?>
<?php while (have_posts()) : the_post();?>
<?php $postCount++;?>




<div class="post" id="post-<?php the_ID(); ?>">

<center><div class="thedate"><?php the_time('l, F jS, Y') ?></div></center>

</td></tr>

<tr><td background="images/mainbg.gif">

<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="h3"><?php the_title(); ?></a></h3>

<?php the_content('Read the rest of this entry &raquo;'); ?>


</td></tr>
<tr><td background="images/mainbottom.gif" width="602px" height="48px">

<div class="meta"><center><h1>Posted by <?php the_author() ?> | Filed in <?php the_category(', ') ?> | <?php comments_popup_link('0 Comment now »', '1 Comments »', '% Comments »', 'commentslink'); ?> <?php edit_post_link('edit','<span class="metaedit">| [',']</span>'); ?> </h1></center></div>


</div>
	



<?php endwhile; ?>

		<div class="navigation">
			<?php posts_nav_link(' | ','&laquo; Previous Page' ,'Next Page &raquo;'); ?>
		</div>
		
</td></tr>
</table>
</br></br>
<?php else : ?>

<h3>Not Found</h3>
<div class="entrybody">Sorry, but you are looking for something that isn't here.</div>
<?php endif; ?>

<!-- end loop -->




     




</div>







<div id="nav">
<table width=178><tr><td background="images/navtop.gif" height="33" width="178">
<tr><td background="images/navbg.gif">

<center>
<a href="http://www.mangregation.com">Home</a>
<br><a href="http://www.mangregation.com/forums">Forums</a>
<br><a href="http://www.mangregation.com/contact">Contact Us</a>
<br><a href="http://www.mangregation.com/about">About Us</a>
</center>

</td></tr>
<tr><td background="images/navbottom.gif" height="19" width="178">

</td></td>
</table>
</div>



<div id="bottom" >
<table width=780>
<tr><td background="images/bottombar.gif" width="780" height="50">
</td></tr>
</table>
</div>




</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
- The Congregation of Man
FutileSoul is offline
Reply With Quote
View Public Profile Visit FutileSoul's homepage!
 
 
Register now for full access!
Old 08-05-2007, 08:10 PM Re: Layout Problems
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
Get rid of the tables for layout! Check out How to correctly develop a website
for some information about developing a site correctly. Only by using a decent developing method will you achieve decent results.

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-06-2007, 12:15 AM Re: Layout Problems
Angelosanto's Avatar
Webmaster Talker

Posts: 548
Name: Danny Angelosanto
Trades: 0
yeh i'd reccomend the w3schools CSS tutorial personally
__________________
"The only reason some people get lost in thought is because it's unfamiliar territory."
_____________________________________
Angelosanto is offline
Reply With Quote
View Public Profile Visit Angelosanto's homepage!
 
Old 08-08-2007, 01:56 PM Re: Layout Problems
FutileSoul's Avatar
Ultra Talker

Posts: 383
Location: Michigan
Trades: 0
I moved the test page to http://test.mangregation.com

I got rid of all of the tables, but now i have a couple of problems

How do i get the date and the "posted by" text to appear over an image?
how do i get the backgrounds in the body of the post and the navigation
Nav BG and Blog Body BG

here is the index.php code

PHP 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 profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php bloginfo('name'); ?>
<?php 
if ( is_single() ) { ?>
&raquo;Blog Archive
<?php ?>
<?php wp_title
(); ?>
</title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php wp_head
(); ?>
<style type="text/css" media="screen">


body
{ background: #ffffff; color: #000000; font-family:  veranda;
    position:absolute;
    left:50%;
    width:780px;
    height:100%;
        margin-top:0px;
    margin-left:-390px;
    padding:0px;
    border:none;


        background-repeat: repeat-y;}





#banner { width: 780px; height: 85px; position: absolute; top: 0px; left: 0px; margin: 0px;  background-repeat: no-repeat; background-image: url('<?php bloginfo('template_directory'); ?>/images/banner.gif');}

#home { width: 133px; height: 29px; position: absolute;  top: 85px; left: 0px; margin: 0px;  background-repeat: no-repeat; }

#forums { width: 95px; height: 29px; position: absolute;  top: 85px; left: 133px; margin: 0px;  background-repeat: no-repeat; }

#contact { width: 119px; height: 29px; position: absolute;  top: 85px; left: 228px; margin: 0px;  background-repeat: no-repeat;}

#about { width: 136px; height: 29px; position: absolute;  top: 85px; left: 347px; margin: 0px;  background-repeat: no-repeat; }

#right { width: 297px; height: 29px; position: absolute;  top: 85px; left: 483px; margin: 0px;  background-repeat: no-repeat; }

#main { width: 602px; height: 100%; position: absolute;  top: 114px; left: 0px; margin: 0px;  background-repeat: no-repeat; }

#nav { width: 178px; height: 100%; position: absolute;  top: 114px; left: 602px; margin: 0px;  background-repeat: no-repeat; }

a:link, a:visited { color: #616161; text-decoration: none; font-weight: bold; border-bottom: 0px solid #616161;}
a:hover { color: #898989; border-bottom: 0px solid #898989; font-weight: bold;}

</style>
</head>






<body>

<div id="banner">
</div>

<div id="home">
<a href="http://www.mangregation.com"><img src="images/home.gif" border="0"></a>
</div>

<div id="forums">
<a href="http://www.mangregation.com/forums"><img src="images/forums.gif" border="0"></a>
</div>

<div id="contact">
<a href="http://www.mangregation.com/contact"><img src="images/contactus.gif" border="0"></a>
</div>

<div id="about">
<a href="http://www.mangregation.com/about"><img src="images/aboutus.gif" border="0"></a>
</div>

<div id="right">
<img src="images/right.gif">
</div>






<div id="main">



<!-- the loop -->




<?php if (have_posts()) :?>
<?php $postCount
=0?>
<?php 
while (have_posts()) : the_post();?>
<?php $postCount
++;?>




<div class="post" id="post-<?php the_ID(); ?>">
<img src="images/maintop.gif" width="602px" height="49px">
<center><strong><small><div class="thedate"><?php the_time('l, F jS, Y'?></div></center></strong></small>





<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="h3"><?php the_title(); ?></a></h3>

<?php the_content('Read the rest of this entry &raquo;'); ?>






<div class="meta"><center><small><h1>Posted by <?php the_author() ?> | Filed in <?php the_category(', '?> | <?php comments_popup_link('0 Comment now »''1 Comments »''% Comments »''commentslink'); ?> <?php edit_post_link('edit','<span class="metaedit">| [',']</span>'); ?> </h1></center></div></small>
<img src="images/mainbottom.gif" width="602px" height="48px">
<br>

</div>
    



<?php endwhile; ?>

        <div class="navigation">
            <?php posts_nav_link(' | ','&laquo; Previous Page' ,'Next Page &raquo;'); ?>
        </div>
        


</br></br>
<?php else : ?>

<h3>Not Found</h3>
<div class="entrybody">Sorry, but you are looking for something that isn't here.</div>
<?php endif; ?>

<!-- end loop -->




     




</div>







<div id="nav">
<img src="images/navtop.gif" height="33" width="178">


<center>
<a href="http://www.mangregation.com">Home</a>
<br><a href="http://www.mangregation.com/forums">Forums</a>
<br><a href="http://www.mangregation.com/contact">Contact Us</a>
<br><a href="http://www.mangregation.com/about">About Us</a>
</center>


<img src="images/navbottom.gif" height="19" width="178">


</div>



<div id="bottom" >

<img src="images/bottombar.gif" width="780" height="50">

</div>




</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
- The Congregation of Man

Last edited by FutileSoul; 08-08-2007 at 01:59 PM..
FutileSoul is offline
Reply With Quote
View Public Profile Visit FutileSoul's homepage!
 
Reply     « Reply to Layout Problems
 

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.23216 seconds with 12 queries