boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with DIV layers

 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
bounce



Joined: 22 Sep 2004
Posts: 5

PostPosted: Wed Sep 22, 2004 10:44 am    Post subject: Problem with DIV layers Reply with quote

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
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 626
Location: Oslo, Norway

PostPosted: Wed Sep 22, 2004 12:47 pm    Post subject: Reply with quote

div id="content" style="position:absolute; top:206; left:8; width:437; z-index:2; padding:0px;">

Interesting...
Try changing the z-index to 1, "pushing it" under the first div.
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
bounce



Joined: 22 Sep 2004
Posts: 5

PostPosted: Wed Sep 22, 2004 8:19 pm    Post subject: Reply with quote

I've tried that already, and it had no effect whatsoever. Sad

I don't understand why this wouldn't be working... it's really strange.
Back to top
View user's profile Send private message
bounce



Joined: 22 Sep 2004
Posts: 5

PostPosted: Thu Sep 23, 2004 2:27 am    Post subject: Reply with quote

I also tried using a php include. No luck.
Back to top
View user's profile Send private message
bounce



Joined: 22 Sep 2004
Posts: 5

PostPosted: Thu Sep 23, 2004 3:01 am    Post subject: Reply with quote

I finally figured out what was wrong! Very Happy Very Happy

This problem has been resolved. Sorry about all the posts!
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 626
Location: Oslo, Norway

PostPosted: Thu Sep 23, 2004 7:55 am    Post subject: Reply with quote

I'm curious; what was it?
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
bounce



Joined: 22 Sep 2004
Posts: 5

PostPosted: Thu Sep 23, 2004 7:40 pm    Post subject: Reply with quote

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. Smile It's strange!
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 626
Location: Oslo, Norway

PostPosted: Thu Sep 23, 2004 8:20 pm    Post subject: Reply with quote

Oh...

That one declares that the document is XHTML. Yours, as mine, is more in the HTML 4.01 TRANS category (meaning less strict coding)..

Very Happy
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
boneless



Joined: 05 Sep 2004
Posts: 29
Location: Netherlands

PostPosted: Fri Sep 24, 2004 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 626
Location: Oslo, Norway

PostPosted: Fri Sep 24, 2004 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
boneless



Joined: 05 Sep 2004
Posts: 29
Location: Netherlands

PostPosted: Fri Sep 24, 2004 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
boneless



Joined: 05 Sep 2004
Posts: 29
Location: Netherlands

PostPosted: Fri Sep 24, 2004 2:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group