473,785 Members | 2,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS background...

11 New Member
Hi,

I am developing a microsite on the end of our current church website. See www.the-ark.net/chooseblue

I built the site using css/html then plugged it in to the existing asp cms we have.

My issue is with css/html... The container background only seems to stretch down as far at the header when viewed in firefox (it is ok with ie7 & dreamweaver preview). I can't fathom why. The css and html seemed to validate ok.

Any ideas?

Here's my CSS & html version of the page:
Expand|Select|Wrap|Line Numbers
  1. *{
  2. border:0;
  3. margin:0;
  4. padding:0;
  5. text-align:center;
  6. }
  7.  
  8. p, ul li{
  9. font-family:'Trebuchet MS', Tahoma,  Arial;
  10. font-size:12pt;
  11. font-weight:normal;
  12. padding:5px;
  13. text-align:left;
  14. }
  15.  
  16. ul{
  17. list-style:none;
  18. }
  19.  
  20. a{
  21. font-weight:bold;
  22. text-decoration:none;
  23. color:#0000FF;
  24. }
  25.  
  26. a:visited{
  27. font-weight:bold;
  28. text-decoration:none;
  29. color:#0000FF;
  30. }
  31.  
  32. a:hover{
  33. text-decoration:underline;
  34. }
  35.  
  36. h1{
  37. font-family:'Trebuchet MS', Tahoma,  Arial;
  38. font-size:32pt;
  39. text-align:left;
  40. padding:0 10px;
  41. color:#0000FF;
  42. }
  43.  
  44. h2{
  45. font-family:'Trebuchet MS', Tahoma,  Arial;
  46. font-size:24pt;
  47. text-align:left;
  48. padding:0 5px;
  49. color:#000000;
  50. }
  51.  
  52.  
  53. h3{
  54. padding:0 5px;
  55. font-family:'Trebuchet MS', Tahoma,  Arial;
  56. font-size:16pt;
  57. text-align:left;
  58. color:#000000;
  59. }
  60.  
  61. /* body */
  62. body{
  63. background:url(images/back-chip.jpg) repeat top left;
  64. text-align:center;
  65. }
  66.  
  67. /* Container */
  68. #container{
  69. background:url(images/main-back.jpg) repeat-y top left;
  70. width:800px;
  71. position:relative;
  72. text-align:left;
  73. margin:0 auto 0 auto;
  74. }
  75.  
  76. #header{
  77. background:url(images/cards-and-blue-chips.jpg) no-repeat bottom left;
  78. border-bottom:1px solid blue;
  79. text-align:right;
  80. }
  81.  
  82. #inner-wrapper{
  83. width:800px;
  84. }
  85.  
  86. #content{
  87. float:right;
  88. padding-top:10px;
  89. margin:10px 5px 0 0;
  90. width:500px;}
  91.  
  92. #content h2{
  93. border-bottom:1px solid blue;
  94. }
  95.  
  96.  
  97. #menu{
  98. float:left;
  99. margin:10px 45px 0 5px;
  100. padding-top:10px;
  101. width:245px;
  102. }
  103.  
  104. #menu h2{
  105. text-align:right;
  106. border-bottom:1px solid blue;
  107. }
  108.  
  109. #menu p, #footer p{
  110. text-align:right;
  111. }
  112.  
  113. #footer{
  114. width:790px;
  115. margin:0 5px;
  116. float:left;
  117. }
  118.  
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Choose Blue - A ministry of The Ark</title>
<link rel="stylesheet " href="blue.css" type="text/css">
</head>
<body>

<div id="container" >

<div id="header">

<img src="images/intro.gif" width="800" height="253">

</div> <!--End of header-->

<div id="inner-wrapper">

<div id="menu">

<h2><img src="images/menu.jpg" width="88" height="31"></h2>
<p>There will be a basic menu here that has links to a blue chip intro, the prayer, ark info... </p>

<h2><img src="images/latest.jpg" width="213" height="31"></h2>
<P>text goes here</P>

</div> <!--end of menu-->

<div id="content">

<h2><img src="images/welcome.jpg" width="144" height="31"></h2>
<p>This is the website for choose blue - a ministry of <a href="../default.asp">Th e Ark</a>. </p>
<p>This website is still under construction so please <a href="../story.asp?itemI D=1208&pcid=125 " target="_self"> click here</a> for the choose blue info. </p>
<p>We will announce on the main <a href="http://www.the-ark.net">Ark</a> website when this site is finished, so keep checking there for the details! </p>
<p>You should be able to click on the links on the left for the latest articles. You might want to start with the first article - <a href="story.asp ?itemID=1208&pc id=125">Blue Chip</a> </p>
<p>Thanks!</p>

</div> <!--End of content-->

</div> <!--end of innerwrapper-->

<div id="footer">

<p>&copy; <a href="../default.asp" target="_self"> The Ark</a>, 2008</p>

</div> <!--end of footer-->

</div> <!--end of container-->

</body>
</html>
[/html]
Thanks
Mark
Apr 1 '08 #1
1 1645
drhowarddrfine
7,435 Recognized Expert Expert
This is a bug in IE. Parent containers are never to expand to contain floated items and modern browsers like Firefox follow the rules.

To get Firefox/Opera/Safar to follow IEs bug, add 'overflow:auto' to the parent container of the floated element.
Apr 1 '08 #2

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

Similar topics

2
10478
by: Markus Mohr | last post by:
Hi, everyone, I have a special problem: For every monitor resolution in 200 pixel steps from 800 to 1600 pixels I have an image to be shown as centered background-image. Those images all have the same name and reside in the following physical path structure:
3
4766
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
5
11097
by: proximus | last post by:
Hi, I am trying to change the background of table TD's. The problem is that I have no access to the HTML code. SO I am trying to alter this using Javascript/DOM in an external .js file. I have tried lot's of things and spent hours on this, I thought I might give it a try here. One of the TD's uses HTML to set the background, the other one uses CSS styling:
3
3243
by: Viken Karaguesian | last post by:
Hello all, I need somehelp with background tiling. I have a sneaking suspicion that what I want to do is not possible, but I'll ask anyway. :>) First some background: Here's the site in question: www.sayatnova.com (I'm sure many of you have seen this before as I've often asked for help). I've come a long way since I first created the site many moons ago and I'm trying to convert it to a (1) Table-less, (2) Frame-less and (3) Validated...
1
2452
by: nicky77 | last post by:
Hi, I've created a nav bar using a background image for rollover effects. Everything works as I had hoped, however, for some reason it seems that an area of whitespace (the same size of the background image) is hyperlinked underneath the nav bar. I can't see any errors in the coding below. Any ideas what may be causing this? the page is at http://www.maguiresonline.co.uk/wosis/files/nickysnav.html the html.... <body...
2
4807
XedinUnknown
by: XedinUnknown | last post by:
Hi! I am new to this forum, but not new to web design and programming. Nevertheless, I have never tried to use PNG so extensively in my pages. here's the problem. First, I have found that the PNG backgrounds and images had no transparency and grey around them when viewed in IE6, but I solved this bug using this hack. It works great, but then another problem came up: a background image that had the solution applied to was not repeating...
16
4937
by: stevedude | last post by:
CSS newbie again. I have a problem trying to get coffee mug images within anchor tags to center with my link text for a vertical list menu. If I use the horizontal/vertical properties of "background" or "background-image", the positioning only works with specifying pixels. If I specify the vertical position in pixels, the image gets cut-off at the bottom. I don't know what to do and would appreciate anyone's help. Specifically the code...
19
3990
by: david.karr | last post by:
If in my CSS I set the "background-color" property on the "body" element, it only covers the background of the elements defined in the body, up to the current width and height of the page. However, if the current component set has a resulting small height, this leaves most of the page with the original background color (white). However, if I set the property on the "html" element instead, it does color the entire visible page, beyond the...
10
5758
by: VividWeb | last post by:
Hi. I am relatively new to CSS and HTML but have a basic understanding of most things. One of my backgrounds is not positioning correctly in IE 7 or AOL. The background behind the content (small chocolate area) is positioning slightly down the page instead of at the top. I have used the same techniques in the navigation and it positions fine. Its fine in Fire Fox Opera & Safari. I have run my HTML & CSS through W3c and all is clean. ...
2
14074
by: thephatp | last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE. I have created a sample page, and I'm really confused as to what is going on in IE. FF renders the page exactly as I expect. IE renders the page with everything in the correct location, but it seems to double the background image for a sub-div section that is moved up using a negative...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10319
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...
1
10087
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
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...
1
7496
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
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
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...
1
4046
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
3
2877
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.