Bob8
05-17-2012, 03:18 PM
Hi all,
Below is my code which I am having 2 problems with, hope you can help me out.
1. Strange, but if I put the #tral tag begin the .section, the <div id="tral"> doesn't seem to work, if I switch him in order with the footer for example, then the footer doesn't work.
2. Suppose if I switch him with the footer, then I see the image, but it is a transparant image. I tried to get the opacity to 1.0 but it doesn't seem to work out...
Thank you!
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
font-family: Arial;
font-size: 11px;
}
hr {
background-color: #004569;
height: 3px;
border:none;
margin: 0px;
}
#nav {
width: 100%;
height: 68px;
float: left;
margin: 0 0 0 0;
padding: 0;
background-color: #f2f2f2;
border-bottom: 1px solid #e3e3e3; }
#nav ul {
list-style: none;
width: 940px;
margin: 0 auto;
padding: 0; }
#nav li {
float: left;
width: 210px; }
#nav li a {
display: block;
text-align: center;
padding: 28px 0px;
text-decoration: none;
font-weight: none;
color: #424242;
height: 12px;
border-right: 1px solid #e3e3e3; }
#nav li:first-child a {
border-left: 1px solid #e3e3e3; }
#nav li a:hover {
color: #009894;
background-color: #fff; }
#nav ti {
float: left;
width: 100px;
background-image:url('logocenter.png');
background-repeat:no-repeat;
background-position:center; }
#nav ti a {
display: block;
text-align: center;
padding: 28px 0px;
text-decoration: none;
font-weight: none;
color: #424242;
height: 12px;
border-right: 1px solid #e3e3e3; }
#nav ti:first-child a {
border-left: 1px solid #e3e3e3; }
#nav ti a:hover {
color: #009894;
background-color: #fff;
background-image:url('logocenter_c.png');
background-repeat:no-repeat;
background-position:center; }
#content {
width: 940px;
margin-left:auto;
margin-right:auto;
}
#content logo{
width: 940px;
height: 110px;
float: left;
background-color: #FFF;
background-image:url('logo.png');
background-repeat:no-repeat;
background-position:left center;
}
#content header{
width: 940px;
height: 323px;
float: left;
background-color: #FFF;
background-image:url('header.jpg');
background-repeat:no-repeat;
background-position:left center;
margin-bottom: 13px;
}
#content box{
width: 920px;
height: 550px;
padding: 10px;
float: left;
background-color: #FFF;
background-image:url('bg.png');
}
hr.seperator_up {
width: 100%;
background-color: #bababa;
height: 1px;
border:none;
margin-top: 3px;
margin-left: auto;
margin-right: auto;
}
hr.seperator_down {
width: 100%;
background-color: #fdfdfd;
height: 1px;
border:none;
margin: 0;
margin-left: auto;
margin-right: auto;
}
@font-face {
font-family: Abel;
src: url('Abel-Regular.ttf');
}
p.custom_title_abel {
font-family: Abel;
font-size: 25px;
margin-left: 60px;
}
p.box_text {
font-family: Arial;
font-size: 12px;
margin-left: 60px;
margin-right: 60px;
}
.buttonarrow a{
display: block;
width: 23px;
height: 23px;
background: url('buttonarrow.png') no-repeat;
background-position: 0px -23px;
margin-left: 840px;
}
.buttonarrow a:hover {
background-position: 0px 0px;
}
#content box concepts {
width: 895px;
height: 300px;
padding: 10px;
margin-top: 20px;
float: left;
background-color: #FFFFFF;
opacity:0.5;
filter:alpha(opacity=50); /* For IE8 and earlier */
border:2px dashed #bababa;
}
#grid {
margin-left: -15px;
}
.col {
width: 33.3%;
float: left;
text-align: center;
}
.section {
margin-left: 15px;
height: 100px;
background: green;
}
#tral{
opacity:1.0;
filter:alpha(opacity=100); /* For IE8 and earlier */
background-image: url('box_1.png');
width: 750px;
height: 133px;
float: left;
background-color: transparent;
background-repeat: no-repeat;
background-position: top;
}
#footer {
width: 100%;
height: 225px;
float: left;
background-color: #f2f2f2;
margin-top: 13px;
border-top: 1px solid #e3e3e3;
}
</style>
</head>
<body>
<hr>
<div id="nav">
<ul>
<li><a href="#">Begin</a></li>
<li><a href="#">Hello</a></li>
<ti><a href="#"></a></ti>
<li><a href="#">Reference</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div id="content">
<logo>
</logo>
<header>
</header>
<box>
<hr class="seperator_up"><hr class="seperator_down">
<p class="custom_title_abel">Hello</p>
<p class="box_text">Testing text</p>
<span class="buttonarrow"><a href="#"></a></span>
<concepts>
<div id="grid">
<div class="col">
<div class="section">
<div id="tral">
</div>
</div>
</div>
<div class="col">
<div class="section">
Content.
</div>
</div>
<div class="col">
<div class="section">
Content.
</div>
</div>
</div>
</concepts>
</box>
</div>
<div id="footer">
</div>
</body>
</html>
Below is my code which I am having 2 problems with, hope you can help me out.
1. Strange, but if I put the #tral tag begin the .section, the <div id="tral"> doesn't seem to work, if I switch him in order with the footer for example, then the footer doesn't work.
2. Suppose if I switch him with the footer, then I see the image, but it is a transparant image. I tried to get the opacity to 1.0 but it doesn't seem to work out...
Thank you!
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
font-family: Arial;
font-size: 11px;
}
hr {
background-color: #004569;
height: 3px;
border:none;
margin: 0px;
}
#nav {
width: 100%;
height: 68px;
float: left;
margin: 0 0 0 0;
padding: 0;
background-color: #f2f2f2;
border-bottom: 1px solid #e3e3e3; }
#nav ul {
list-style: none;
width: 940px;
margin: 0 auto;
padding: 0; }
#nav li {
float: left;
width: 210px; }
#nav li a {
display: block;
text-align: center;
padding: 28px 0px;
text-decoration: none;
font-weight: none;
color: #424242;
height: 12px;
border-right: 1px solid #e3e3e3; }
#nav li:first-child a {
border-left: 1px solid #e3e3e3; }
#nav li a:hover {
color: #009894;
background-color: #fff; }
#nav ti {
float: left;
width: 100px;
background-image:url('logocenter.png');
background-repeat:no-repeat;
background-position:center; }
#nav ti a {
display: block;
text-align: center;
padding: 28px 0px;
text-decoration: none;
font-weight: none;
color: #424242;
height: 12px;
border-right: 1px solid #e3e3e3; }
#nav ti:first-child a {
border-left: 1px solid #e3e3e3; }
#nav ti a:hover {
color: #009894;
background-color: #fff;
background-image:url('logocenter_c.png');
background-repeat:no-repeat;
background-position:center; }
#content {
width: 940px;
margin-left:auto;
margin-right:auto;
}
#content logo{
width: 940px;
height: 110px;
float: left;
background-color: #FFF;
background-image:url('logo.png');
background-repeat:no-repeat;
background-position:left center;
}
#content header{
width: 940px;
height: 323px;
float: left;
background-color: #FFF;
background-image:url('header.jpg');
background-repeat:no-repeat;
background-position:left center;
margin-bottom: 13px;
}
#content box{
width: 920px;
height: 550px;
padding: 10px;
float: left;
background-color: #FFF;
background-image:url('bg.png');
}
hr.seperator_up {
width: 100%;
background-color: #bababa;
height: 1px;
border:none;
margin-top: 3px;
margin-left: auto;
margin-right: auto;
}
hr.seperator_down {
width: 100%;
background-color: #fdfdfd;
height: 1px;
border:none;
margin: 0;
margin-left: auto;
margin-right: auto;
}
@font-face {
font-family: Abel;
src: url('Abel-Regular.ttf');
}
p.custom_title_abel {
font-family: Abel;
font-size: 25px;
margin-left: 60px;
}
p.box_text {
font-family: Arial;
font-size: 12px;
margin-left: 60px;
margin-right: 60px;
}
.buttonarrow a{
display: block;
width: 23px;
height: 23px;
background: url('buttonarrow.png') no-repeat;
background-position: 0px -23px;
margin-left: 840px;
}
.buttonarrow a:hover {
background-position: 0px 0px;
}
#content box concepts {
width: 895px;
height: 300px;
padding: 10px;
margin-top: 20px;
float: left;
background-color: #FFFFFF;
opacity:0.5;
filter:alpha(opacity=50); /* For IE8 and earlier */
border:2px dashed #bababa;
}
#grid {
margin-left: -15px;
}
.col {
width: 33.3%;
float: left;
text-align: center;
}
.section {
margin-left: 15px;
height: 100px;
background: green;
}
#tral{
opacity:1.0;
filter:alpha(opacity=100); /* For IE8 and earlier */
background-image: url('box_1.png');
width: 750px;
height: 133px;
float: left;
background-color: transparent;
background-repeat: no-repeat;
background-position: top;
}
#footer {
width: 100%;
height: 225px;
float: left;
background-color: #f2f2f2;
margin-top: 13px;
border-top: 1px solid #e3e3e3;
}
</style>
</head>
<body>
<hr>
<div id="nav">
<ul>
<li><a href="#">Begin</a></li>
<li><a href="#">Hello</a></li>
<ti><a href="#"></a></ti>
<li><a href="#">Reference</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div id="content">
<logo>
</logo>
<header>
</header>
<box>
<hr class="seperator_up"><hr class="seperator_down">
<p class="custom_title_abel">Hello</p>
<p class="box_text">Testing text</p>
<span class="buttonarrow"><a href="#"></a></span>
<concepts>
<div id="grid">
<div class="col">
<div class="section">
<div id="tral">
</div>
</div>
</div>
<div class="col">
<div class="section">
Content.
</div>
</div>
<div class="col">
<div class="section">
Content.
</div>
</div>
</div>
</concepts>
</box>
</div>
<div id="footer">
</div>
</body>
</html>