473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CSS background...

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">The Ark</a>. </p>
<p>This website is still under construction so please <a href="../story.asp?itemID=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&pcid=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 1623
drhowarddrfine
7,435 Expert 4TB
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
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...
3
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
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...
3
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...
1
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...
2
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...
16
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...
19
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,...
10
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...
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.