473,503 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

z-index / overlapping <divs> and images

1 New Member
I am making a blog and as part of my template I am wanting to have my header and then another image on the side of that using the z-index: 2; to make it that layer about. so here is the css.

Expand|Select|Wrap|Line Numbers
  1. .splash {
  2.         z-index: 2;
  3.     width: 135px;
  4.     height: 386px;
  5.     margin: 0 auto;
  6.         position: relative;
  7.         left: 450px;
  8.         top: 0px;
  9.     background: url('images/splash1.png');
  10.  
  11. }
and this is the code for the header. (its a wordpress blog btw.)

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5. <head profile="http://gmpg.org/xfn/11">
  6.  
  7. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  8.  
  9. <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
  10.  
  11.  <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
  12.  
  13. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  14.  
  15. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  16.  
  17. <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
  18.  
  19. <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
  20.  
  21. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  22.  
  23. <?php wp_get_archives('type=monthly&format=link'); ?>
  24.  
  25. <?php wp_head(); ?>
  26.  
  27. </head>
  28.  
  29. <body><p class="splash">welcome</p>
  30.  
  31. <div class="main">
  32.          <div class="top">
  33.  
  34.                      <div class="topl">
  35. <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  36.  
  37. </div>
  38.  
  39. <div class="topr">
  40. <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
  41.  
  42. <p><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="search_query" />
  43. <input type="submit" class="searchbutton" value="Search" /></p>
  44.  
  45.  </form>
  46.  
  47.  
  48. </div>
  49.      </div>
  50.          <div class="shortnfo">
  51.                      <div class="menuitems">
  52.   <ul>
  53.  
  54. <li class="page_item"><a href="<?php bloginfo('url'); ?>">Home</a></li>
  55.  
  56. <?php wp_list_pages('title_li='); ?>
  57.  
  58. </ul>
  59.  
  60. </div>
  61.                     <div class="welcome">
  62.                              <h2>Welcome</h2>
  63.  
  64.                              <p><?php bloginfo('description'); ?></p>
  65.  
  66.                     </div>
  67.          </div>
and the link to my site is: http://www.arctosdesign.com/blog

you should see the layout as it should be but then a nice watery image above that which is the image i am wanting to move.
if anyone could give me some advice or tips as to how to sort this i would really appriciate it.
thanx
Aug 6 '07 #1
1 2565
drhowarddrfine
7,435 Recognized Expert Expert
Why is this line before your doctype?
<div class="splash" is="splash">

It must be moved.
Aug 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
2485
by: Aaron | last post by:
Hi, In the following code, everything looks fine on Explorer, but on Netscape there is a large white gap between the 'top' section and the 'bottom menu' section. I've set the style 'div img...
4
10204
by: Aaron | last post by:
I have the following divs: <div style="background-image: url(images/house_01.jpg); width: 249px; height: 346px;"></div> <div style="background-image: url(images/house_02.jpg); width: 251px;...
2
1259
by: Trev | last post by:
I'm converting a site from VBScript to JavaScript, I have the following code in VBSCript: > Sub ShowSection_OnClick(pintDivNum) > > document.all.item("div_" & pintDivNum &...
0
2067
by: Jeb Hunter | last post by:
Well, how can I describe this succinctly? I have a page with DIVs that us background images to produce a border effect. It works perfectly well, but I want to make up (for now) 3 different...
9
2498
by: Troy Piggins | last post by:
If I use the code: ----- <div style="text-align: center;"> <a href="photos.php?img=xx1.jpg"> <img src="xx1.jpg" style="padding: 10px;" /> </a> <a href="photos.php?img=xx2.jpg">
11
2118
by: bdbeames | last post by:
What I have is a is two sets of images,(Weather, optical) there is about 30 images of is each set. I have script that will rotate through the images on the main page. The user is able to view...
21
2355
by: daydream | last post by:
yeah i need some help(such a common line) ,i have a menu and each link has its own div respectively and yeah obviously when u click the link the div shows, the problem is i would like each div to...
1
2196
by: Starance | last post by:
Well... I'm not sure if this can be fixed, I've tried many ways. But here goes; When you resize your browser window it seems to move my video & photo divs. I want them kept in line with the...
2
4205
by: benwah1983 | last post by:
Greetings, Here is my problem: The following code shows a div with two small nested divs (images with a title), then the div is closed. Another one opens and a "random text" is displayed. <div...
2
4800
by: jeddiki | last post by:
How do I get these 2 divs to be side by side ? I have been trying to apply the float logic to a couple of divs on the same screen, but without success. There is a main div that holds two...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.