View previous topic :: View next topic |
Author |
Message |
bounce
Joined: 22 Sep 2004 Posts: 5
|
Posted: Wed Sep 22, 2004 10:44 am Post subject: Problem with DIV layers |
|
|
No matter what I do, I can't get my b2 blog entries to show up correctly in a DIV layer. They won't adhere to the positioning or width commands. They just stay where they always were.
Here's the code I have on my page:
Code: | <?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<!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>
<title><?php bloginfo('name') ?><?php single_post_title(' :: ') ?><?php single_cat_title(' :: ') ?><?php single_month_title(' :: ') ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="<?php bloginfo('admin_email'); ?>" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />
<style type="text/css" media="screen">
@import url( blueblue.css );
</style>
<link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
</head>
<body>
<div id="img1" style="position:absolute; top:0; left:0; width:290; height:191; z-index:1; padding:0px;"><img src="/img/un.gif" border="0"></div>
<div id="content" style="position:absolute; top:206; left:8; width:437; z-index:2; padding:0px;">
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php permalink_anchor(); ?><p class="subject"><b><?php the_date("","",""); ?></b><br><?php the_title(); ?></br></p>
<p class="text">
<?php the_content(); ?></p>
<p class="subject">
<?php link_pages("<br />Pages: ","<br />","number") ?>
<?php the_author() ?> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a> - <a href="<?php comments_link() ?>"><?php comments_number("no comments", "1 comment", "% comments") ?></a></p>
<?php trackback_rdf() ?>
<!-- this includes the comments and a form to add a new comment -->
<?php include ("b2comments.php"); ?>
<!-- this includes the trackbacks -->
<?php include ("b2trackback.php"); ?>
<!-- this includes the pingbacks -->
<?php include ("b2pingbacks.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?>
<p class="centerP">[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>]
</p>
</div>
</body>
</html> |
And right now, it looks like this. (I'm still working on it, I haven't bothered to add the rest of the images in.)
Can anyone tell me how to make the DIV layer work? Any help would be very greatly appreciated.
- Lauren |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 626 Location: Oslo, Norway
|
|
Back to top |
|
 |
bounce
Joined: 22 Sep 2004 Posts: 5
|
Posted: Wed Sep 22, 2004 8:19 pm Post subject: |
|
|
I've tried that already, and it had no effect whatsoever.
I don't understand why this wouldn't be working... it's really strange. |
|
Back to top |
|
 |
bounce
Joined: 22 Sep 2004 Posts: 5
|
Posted: Thu Sep 23, 2004 2:27 am Post subject: |
|
|
I also tried using a php include. No luck. |
|
Back to top |
|
 |
bounce
Joined: 22 Sep 2004 Posts: 5
|
Posted: Thu Sep 23, 2004 3:01 am Post subject: |
|
|
I finally figured out what was wrong!
This problem has been resolved. Sorry about all the posts! |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 626 Location: Oslo, Norway
|
|
Back to top |
|
 |
bounce
Joined: 22 Sep 2004 Posts: 5
|
Posted: Thu Sep 23, 2004 7:40 pm Post subject: |
|
|
As soon as I removed this part...
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"> |
...everything worked just fine. It's strange! |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 626 Location: Oslo, Norway
|
|
Back to top |
|
 |
boneless
Joined: 05 Sep 2004 Posts: 29 Location: Netherlands
|
Posted: Fri Sep 24, 2004 1:36 pm Post subject: |
|
|
And can you imagine removing that line solves my problem as well? The problem about é showing up all wrong.
U removed the doctype lines form index.php and when I know post something using characters like é or à or ö I don't have to use the html-codes for it.
Wow, thanks for helping out without knowing!
Boneless
www.boneless.nl |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 626 Location: Oslo, Norway
|
Posted: Fri Sep 24, 2004 1:57 pm Post subject: |
|
|
Ehh...
I would not recommend deleting the document declaration or type. This reduces the availibility of the siteto various browsers, WAP surfing etc.
Do it if you like. I, on the other hand, slave to acchieve the goals of W3C. _________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
boneless
Joined: 05 Sep 2004 Posts: 29 Location: Netherlands
|
Posted: Fri Sep 24, 2004 2:07 pm Post subject: |
|
|
ok, didn't know that lol, I was so happy the characters finally showed up the way I wanted to.
Is there a way to alter the doctype stuff so it dont say xhtml but just plain html? So it will still publice the characters the way they should be?
thanks ! |
|
Back to top |
|
 |
boneless
Joined: 05 Sep 2004 Posts: 29 Location: Netherlands
|
Posted: Fri Sep 24, 2004 2:10 pm Post subject: |
|
|
problem solved, added the doctype i used when i was still blogging with blogger, and it still works. So the é really is an é and the doctype is still there.
Boneless |
|
Back to top |
|
 |
|