473,795 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

divs not showing up when I test it

35 New Member
hi,

The inside of the box is white with a 2px blue border, I have done the divs for #squaretop and #squarebottom but they don't seem to show up when I test it. I don't have a url yet so the pics are the best that I can do. Not quite sure how to insert an image into this new post as the images are on my hard drive, so you know what I am trying to ask

CSS
body { background-color: #ffffff;
font-family: "Century Gothic";
font-size: 62.5%;
color: #000000;
font-weight:normal;
}

#wrapper {
background-color:#ffffff;
height:auto;
width:750px;
margin-right:auto;
margin-left:auto;
}

#headerlogo {
height: 70px;
width: 760px;
}

#headerimage {
margin-left:8%;
width:368px;
height:261px;
padding:20px 0 0 0;
}

#headernavigati on {
width:750px;
height:10px;
font-size:1.1em;
color:#96ADBF;
font-family:"Century Gothic";
margin-left:13%;
}

#maincontent {
background-color: #ffffff;
height: auto;
width: 100%;
margin-top:5px;
font-size:1.2em;
}

#squarecont {
width:750px;
height:auto;
}

#squaretop {
width:750px;
height:152px;
background:url(/images/squaretop.gif) no-repeat center top;
}

#squarebottom {
width:750px;
height:114px;
background:url(/images/squarebottom.gi f) no repeat center bottom;
}

#squaretext {
font-family:"Century Gothic";
font-size:1.2em;
border-left:solid #cbd7e6 2px;
border-right:solid #cbd7e6 2px;
}

HTML
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. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Photo Restoration Expert, Photo enhancement, Red eye repair</title>
  6. <link href="sitefiles/photorestorationexpert.css" media="screen" type="text/css" rel="stylesheet" />
  7.  
  8.  
  9. </head>
  10.  
  11. <body>
  12.  
  13. <div id="wrapper">
  14. <div id="headerlogo">
  15. <img src="images/photorestorationexpert logo.jpg" width="760" height="70" alt="photo restoration expert logo" /></div>
  16.  
  17.  
  18. <div id="headernavigation">
  19. <h1>Home &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  20. Gallery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  21. Prices &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  22. Contact</h1>
  23. </div>
  24.  
  25. <div id="headerimage">
  26. <img src="images/redeye before&after together.jpg" width="298" height="215" alt="red eye before and after" /></div>
  27.  
  28. <div id="maincontent"></div>
  29. <div id="squarecont">
  30. <div id="squaretop"></div>
  31. <div id="squaretext">
  32.  
  33. <p>
  34. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut eros mi, aliquam sit amet, facilisis sit amet, scelerisque a, felis. Aenean elit tellus, varius at, pretium quis, fringilla sit amet, urna. Donec in nibh ut quam eleifend venenatis. In hac habitasse platea dictumst. Nulla facilisi. Nam ac sapien sed eros malesuada porttitor. Nunc eget lacus sed nibh cursus dictum. Pellentesque ipsum neque, tincidunt at, mattis a, pulvinar sit amet, ipsum. Aliquam sollicitudin lacus et ipsum ullamcorper cursus. Mauris elementum libero non nulla.
  35. </p>
  36.  
  37. <p>
  38. Phasellus suscipit, justo id commodo eleifend, arcu eros sagittis tortor, in vehicula eros enim id urna. Quisque sed turpis. Nam a sapien nec quam adipiscing pretium. Duis sollicitudin iaculis lectus. Nulla facilisi. Aliquam erat volutpat. Vivamus dui neque, egestas vel, tristique sed, posuere at, est. Sed magna ligula, fermentum ut, suscipit in, molestie quis, nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut pulvinar. 
  39. </p>
  40.  
  41. </div>
  42. <div id="squarebottom"></div>
  43.  
  44. </div>
  45.  
  46. </div>
  47.  
  48. </body>
  49. </html>
  50.  
Jun 26 '07 #1
1 1616
bettor
27 New Member
hi,

The inside of the box is white with a 2px blue border, I have done the divs for #squaretop and #squarebottom but they don't seem to show up when I test it. I don't have a url yet so the pics are the best that I can do. Not quite sure how to insert an image into this new post as the images are on my hard drive, so you know what I am trying to ask

CSS
body { background-color: #ffffff;
font-family: "Century Gothic";
font-size: 62.5%;
color: #000000;
font-weight:normal;
}

#wrapper {
background-color:#ffffff;
height:auto;
width:750px;
margin-right:auto;
margin-left:auto;
}

#headerlogo {
height: 70px;
width: 760px;
}

#headerimage {
margin-left:8%;
width:368px;
height:261px;
padding:20px 0 0 0;
}

#headernavigati on {
width:750px;
height:10px;
font-size:1.1em;
color:#96ADBF;
font-family:"Century Gothic";
margin-left:13%;
}

#maincontent {
background-color: #ffffff;
height: auto;
width: 100%;
margin-top:5px;
font-size:1.2em;
}

#squarecont {
width:750px;
height:auto;
}

#squaretop {
width:750px;
height:152px;
background:url(/images/squaretop.gif) no-repeat center top;
}

#squarebottom {
width:750px;
height:114px;
background:url(/images/squarebottom.gi f) no repeat center bottom;
}

#squaretext {
font-family:"Century Gothic";
font-size:1.2em;
border-left:solid #cbd7e6 2px;
border-right:solid #cbd7e6 2px;
}

HTML
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. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Photo Restoration Expert, Photo enhancement, Red eye repair</title>
  6. <link href="sitefiles/photorestorationexpert.css" media="screen" type="text/css" rel="stylesheet" />
  7.  
  8.  
  9. </head>
  10.  
  11. <body>
  12.  
  13. <div id="wrapper">
  14. <div id="headerlogo">
  15. <img src="images/photorestorationexpert logo.jpg" width="760" height="70" alt="photo restoration expert logo" /></div>
  16.  
  17.  
  18. <div id="headernavigation">
  19. <h1>Home &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  20. Gallery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  21. Prices &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  22. Contact</h1>
  23. </div>
  24.  
  25. <div id="headerimage">
  26. <img src="images/redeye before&after together.jpg" width="298" height="215" alt="red eye before and after" /></div>
  27.  
  28. <div id="maincontent"></div>
  29. <div id="squarecont">
  30. <div id="squaretop"></div>
  31. <div id="squaretext">
  32.  
  33. <p>
  34. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut eros mi, aliquam sit amet, facilisis sit amet, scelerisque a, felis. Aenean elit tellus, varius at, pretium quis, fringilla sit amet, urna. Donec in nibh ut quam eleifend venenatis. In hac habitasse platea dictumst. Nulla facilisi. Nam ac sapien sed eros malesuada porttitor. Nunc eget lacus sed nibh cursus dictum. Pellentesque ipsum neque, tincidunt at, mattis a, pulvinar sit amet, ipsum. Aliquam sollicitudin lacus et ipsum ullamcorper cursus. Mauris elementum libero non nulla.
  35. </p>
  36.  
  37. <p>
  38. Phasellus suscipit, justo id commodo eleifend, arcu eros sagittis tortor, in vehicula eros enim id urna. Quisque sed turpis. Nam a sapien nec quam adipiscing pretium. Duis sollicitudin iaculis lectus. Nulla facilisi. Aliquam erat volutpat. Vivamus dui neque, egestas vel, tristique sed, posuere at, est. Sed magna ligula, fermentum ut, suscipit in, molestie quis, nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut pulvinar. 
  39. </p>
  40.  
  41. </div>
  42. <div id="squarebottom"></div>
  43.  
  44. </div>
  45.  
  46. </div>
  47.  
  48. </body>
  49. </html>
  50.  

Hi,
First I don't really understand what you are asking. How would you like to see your top and bottom ids when they are empty and there is no info in them. their margin is auto and if there is nothing in them they just don't show anything.
<div id="squaretop"> put some info here to see this div working and the same for squarebottom</div> Let me know if this helps
Jun 27 '07 #2

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

Similar topics

39
3656
by: WindAndWaves | last post by:
Hi Gurus I have a page, which looks a bit like this: .... <body> <div ID=id1>................</DIV> <div ID=gsd>................</DIV> <div ID=ewd>................</DIV> <div ID=fac>................</DIV>
6
10923
by: veerleverbr | last post by:
Hi, I have the following html: <div id="content"> <div id="leftpart">...</div> <div id="rightpart">...</div> </div> leftpart en rightpart are in the css set to float left. The content of leftpart and rightpart div is so that both divs have different height.
5
2203
by: gregmercer | last post by:
I have the following html sample, where I'd like to have a show and hide two divs, one replacing the other. Following these two divs is a third div (the bluediv) which I would like to have placed right up directly below to the first or second div, depending on which is showing. If you load the html in Firefox, and then click on the "Edit" link you can see that the first div is hidden, the second div is shown, however the third div is...
12
2821
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of the floating divs, nothing is cleared. What am I doing wrong ? Here is the url:http://www.reenie.org/test/test5.php Here is the code: <html> <head>
2
2332
by: Ben Wall | last post by:
I have a page with six or seven absolutely positioned DIV blocks ... they all contain form elements .. text boxes, buttons, etc. and they all reside within a containing "master" DIV. What I need to do is overlay all of the DIVs with a "pop-up" DIV to get some additional input; so, on a button click I am setting the visibility and the top/left coordinates to bring it into position ... but what's happening is that three elements underneath...
19
6201
roula
by: roula | last post by:
I HATE DIVS AND DIFFERENT BROWSERS!!! i spent the whole day and night searching for a way to center align stupid divs, the problem is that the code is so sensitive, i lost my mind trying to make them work in a certain way (like some should scroll with a fixed background and others shouldn't scroll bla bla..) and the divs are nested and positioned in different ways and if i change something it gets messed up and what works in in IE doesn't work...
2
2745
by: rigiditymodulus | last post by:
Hi - So, I had this working perfectly, then had a small crash (the transmitter for my wireless mouse occassionally freaks out my MacBook Pro) and when I rebooted and opened up my file the two layered DIVs I had were no longer showing up correctly. I had this going fine for several hours -- it wasn't a happy accident I forgot to save. I'm totally mystified on this one. Here's the summary: I want #container to be under #containerbranch, so...
5
1795
by: warp | last post by:
With some help from a friend I made a layout for this website: http://jwstolk.xs4all.nl/roelof/ (don't mind all the unfinished junk, the home page is of concern) In FF 3 it shows just fine, but when I test it in IE 6 the divs with text don't center. I read about using text align:center; becuase IE doesn't support auto margins, but I don't want my text to center. I want it to align on the left of my div, and get the whole div centered. ...
2
4337
by: dmj07 | last post by:
What I would like to achieve is to have two divs on either side of my tab container, one on the left and one on the right both touching the far sides. Then information will need to go inbetween the two divs in the middle. They also need to automatically expand in height when the tab container expands. Here is my code up to now: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <link...
0
10448
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9046
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7544
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.