Small image is overlapping my navigation? - html

With character: http://jsfiddle.net/nuu6g/
For some reason, I cannot click on my text on my navigation menu. This is most likely due to the (missing) image on the left, which I will refer to as the "character." However, when I remove the character, I can indeed click on the text again.
Without character: http://jsfiddle.net/aN5s5/
body {
background:grey;
}
.topContainer {
width: 1000px;
height: 125px;
margin: 0 auto;
padding-bottom: 20px;
}
#logo {
float: left;
padding: 10px 10px;
}
/* Navigation */
#navigation {
background: #107AEB;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#107AEB), to(#106FEB));
background: -webkit-linear-gradient(top, #107AEB, #106FEB);
background: -moz-linear-gradient(top, #107AEB, #106FEB);
background: -ms-linear-gradient(top, #107AEB, #106FEB);
background: -o-linear-gradient(top, #107AEB, #106FEB);
border: 2px solid rgba(16, 86, 235, 0.9);
border-radius: 15px;
float: right;
width: 455px;
height: 55px;
margin-top: 22px;
z-index: 1;
}
#navigation ul {
display: inline-block;
position: absolute;
list-style-type: none;
}
#navigation li {
display: inline-block;
}
#navigation a {
color: #FFF;
font-family: SEGOEUIL, Arial, sans-serif;
text-shadow: 0 1px 0 #000;
text-align: center;
padding: 5px 10px;
font-size: 17px;
}
#navigation a:hover {
background: rgba(16, 86, 235, 0.9);
border-radius: 5px;
}
#navigation a:active {
text-decoration: none;
}
#navigation a:link {
text-decoration: none;
}
.character {
z-index: 2;
padding: 0 275px;
float: left;
position: absolute;
width: 187px;
height: 174px;
}
/* Wrapper */
#wrapper {
background: #FFF;
/*rgba(255, 255, 255, 0.85);*/
border-top-left-radius: 25px;
border-top-right-radius: 25px;
width: 1000px;
height: 1200px;
position: relative;
z-index: 3;
overflow: hidden;
margin: 0 auto;
}
#photoContent {
background: #ffcc00;
border: 1px solid #b62100;
border-radius: 8px;
width: 781px;
height: 231px;
margin-top: 12px;
display: block;
margin-left: auto;
margin-right: auto;
}
.displayPhoto {
width: 771px;
height: 221px;
border: 0;
border-radius: 8px;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 3px;
border: 1px solid #b62100;
}
#leftContent {
padding-top: 15px;
width: 500px;
height: 140px;
float: left;
padding-left: 45px;
}
.title {
font-family: Arial, sans-serif;
color: #3abfee;
font-size: 20px;
}
.desc {
color: #575757;
font-size: 15px;
font-family: Arial, sans-serif;
}
#rightContent {
padding-top: 15px;
width: 300px;
height: 140px;
float: right;
padding-right: 25px;
}
#flashContent {
padding-left: 25px;
width: 700px;
height: 500px;
}
hr {
width: 750px;
height: 1px;
background: #CCC;
border: none;
margin-top: 10px;
}
/* Bottom Wrapper */
#bwCont {
width: 1000px;
height: 500px;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 10px;
}
.galleryCont {
display: block;
margin-left: auto;
margin-right: auto;
width: 650px;
height: 150px;
}
.galleryImgCont {
width: 175px;
height: 175px;
float: left;
}
.galleryTitle {
font-family:'Exo 2', sans-serif;
font-size: 17px;
color: #333;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
padding-top: 145px;
}
.galleryDesc {
font-family:'Exo 2', sans-serif;
font-size: 15px;
color: #333;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
#galleryImg {
width: 175px;
height: 125px;
border: 5px solid #F5F5F5;
box-shadow: 0 0 7px;
border-radius: 5px;
float: left;
}
.readMore {
width: 175px;
height: 50px;
background: #000;
border: 0;
border-radius: 5px;
padding: 10px 10px;
color: #FFF;
font-family:'SEGOEUIL', sans-serif;
font-size: 17px;
}
.readMore:hover {
background: #202020;
}
Please help me, thanks! Also, just an extra question; is there any way I can keep the read more buttons inline, instead of like a staircase? Sorry, but thank you!

For your links to be "clickable", either adjust the padding/width of #character or use the following CSS so #navigation comes up top of #character
#navigation {
z-index: 3;
position: relative;
}
DEMO
For "Read More" to be aligned, you're going to need to have the same number of lines in the title and the description, or you can set a minimum height (or even just the height) of those by adding the following CSS for eaxmple:
.galleryTitle {
min-height:40px;
}
.galleryDesc {
min-height:60px;
}
DEMO

Your nav items are displaying in a staircase because there is not enough room due to the width of your ul. adding width 100% will allow them to display inline the way you want.
#navigation ul {
width: 100%
}
the reason you can't click your text link is because of your character class overlaying your images with a higher z-index.

Related

Background image disappears when adding class to header

I'm having some trouble with my CSS code. I want to add a class to my header element so that I can differentiate in my stylesheet between the header for my homepage and the header for content pages. I started out with a header without a class, and everything was functioning properly. Suddenly, when I decided to add a class to my header element, the background image disappeared, and I can't figure out why.
This works:
header {
width: 100%;
height: 511px;
background: url('cakesresized.jpg') no-repeat;
margin: 10px 0px;
}
.homepgintro {
font-size: 0.9em;
position: absolute;
left: 65%;
height: 22em;
width: 22em;
background-color: rgba(181, 194, 202, 1);
padding: 7px;
color: #fff;
text-align: center;
}
.homepgintro img {
display: block;
width: 150px;
margin: 0 auto;
border-radius: 100px;
}
When the corresponding HTML is as follows:
<header class="homepg1"><h1>Shannon Loves Sweets</h1>
<div class="homepgintro">
<img src="profile.jpg">
<h2>Hi there!</h2>
<p>I'm Shannon! I'm a super busy full-time employee/part-time student who <i>loves</i> sweets and all things fried. Join me on my journey to cook at home more often, and to eat healthier while still working in some sweet treats!</p></div></header>
But THIS CSS will not work, and makes the background image disappear:
.homepg1 {
width: 100%;
height: 511px;
background: url('cakesresized.jpg') no-repeat;
margin: 10px 0px;
}
.homepgintro {
font-size: 0.9em;
position: absolute;
left: 65%;
height: 22em;
width: 22em;
background-color: rgba(181, 194, 202, 1);
padding: 7px;
color: #fff;
text-align: center;
}
.homepgintro img {
display: block;
width: 150px;
margin: 0 auto;
border-radius: 100px;
}
What's going wrong? Here is the entire CSS code for my stylesheet (the version that is currently working as expected):
/* UNIVERSAL STYLES */
#page {
max-width: 1200px;
width: 85%;
left: 7.5%;
position: relative;
margin-top: 100px;
background-color: #D9C6C1;
border-radius: 25px;
overflow: hidden;
}
body {
font-family: 'Roboto Slab', Georgia, serif;
font-size: 16px;
background-color: white;
color: #fff;
}
h1 {
font-family: 'Pacifico', cursive;
font-size: 3em;
padding: 4px;
}
h2 {
font-family: 'Sunshiney', 'Comic Sans MS', cursive;
font-size: 2em;
margin: 0;
}
section {
padding: 10px;
}
/* STELLA SAYS */
.stellasays img {
border-radius: 100%;
width: 220px;
float: right;
}
/* NAVIGATION */
nav {
background-color: white;
top: 0;
left: 0;
width: 100%;
margin-bottom: 60px;
position: fixed;
z-index: 100;
}
nav li {
display: inline-block;
padding: 7px;
margin-top: 6px;
}
nav a {
font-family: 'Pacifico', cursive;
color: #cef0de;
border-bottom: 1px solid #cef0de;
text-decoration: none;
padding: 4px;
font-size: 1.3em;
transition: color 0.4s ease-in-out 0.2s;
}
nav a:hover, nav a:focus {
color: #E9BE68;
border-bottom: 1px solid #E9BE68;
}
/* HOMEPAGE STYLES */
header {
width: 100%;
height: 511px;
background: url('cakesresized.jpg') no-repeat;
margin: 10px 0px;
}
.homepgintro {
font-size: 0.9em;
position: absolute;
left: 65%;
height: 22em;
width: 22em;
background-color: rgba(181, 194, 202, 1);
padding: 7px;
color: #fff;
text-align: center;
}
.homepgintro img {
display: block;
width: 150px;
margin: 0 auto;
border-radius: 100px;
}

z-index not effect with child element

I have a website Suoi Hong Resort
But block of menu display behind logo.
.navigation class has position is absolute, z-index is 3. Logo has position is absolute. z-index is 2. And block has z-index is 10. But block of menu cannot display in fron of logo.
Please help me this issue!
*
{
margin: 0;
padding: 0;
text-decoration: none;
list-style: none;
border: none;
outline: none;
}
#font-face
{
font-family: UTM_Alberta_Heavy;
src: url("/Styles/CSS/Font/UTM_Alberta_Heavy/UTM ALBERTA HEAVY.TTF");
}
#font-face
{
font-family: Pristina;
src: url("/Styles/CSS/Font/Pristina/PRISTINA_0.TTF");
}
#font-face
{
font-family: UVN_Van;
src: url("/Styles/CSS/Font/UVN_Van/UVNVAN_R.TTF");
}
#font-face
{
font-family: UTM_Pierre;
src: url("/Styles/CSS/Font/UTM_Pierre/UTM PIERRE.TTF");
}
#font-face
{
font-family: UVN_MAU_TIM_1;
src: url("/Styles/CSS/Font/UVN_Mau_Tim_1/UVNMAUTIM1.TTF");
}
#font-face
{
font-family: UVN_MAU_TIM_2;
src: url("/Styles/CSS/Font/UVN_Mau_Tim_2/UVNMAUTIM2.TTF");
}
#font-face
{
font-family: UTM_DINH_TRAN;
src: url("/Styles/CSS/Font/UTM_Dinh_Tran/UTM DINH TRAN.TTF");
}
#font-face
{
font-family: UVN_Tin_Tuc_Nhe;
src: url("/Styles/CSS/Font/UVN_Tin_Tuc_Nhe/UVNTINTUCNHE_R.TTF");
}
#font-face
{
font-family: MuaThu;
src: url("/Styles/CSS/Font/MuaThu/UVNMUATHU.TTF");
}
#font-face
{
font-family: Caolanh;
src: url("/Styles/CSS/Font/Caolanh/CAOLANH.TTF");
}
.img
{
float: left;
width: 100%;
height: 100%;
}
.link
{
float: left;
width: 100%;
height: 100%;
}
h1
{
font-weight: normal;
}
body, .line-fix-parent-width, .container, .header
{
float: left;
width: 100%;
}
body
{
background-color: #381004;
background-image: url("/Design/bg.png");
}
.container
{
}
/* CSS for navigation-left */
.navigation
{
float: left;
width: 100%;
height: 72px;
background-color: rgba(253,230,199,1);
background-image: url("/Design/nav-bg.png");
background-repeat: repeat;
position: fixed;
top: 0;
z-index: 2;
}
/*CSS For navigation*/
.navigation-wrapper
{
float: left;
width: 73.206%;
margin-left: 13.397%;
}
.nav
{
float: left;
width: 39%;
}
navigation-left
{
float: left;
}
.navigation-right
{
float: right;
}
.nav ul
{
float: left;
width: 100%;
}
.nav ul li
{
float: left;
font-family: UVN_Van;
}
.nav ul li a
{
padding: 13px;
color: #FFF;
font-size: 13px;
float: left;
}
.nav > ul > li
{
margin-top: 16px;
}
.nav > ul > li > a
{
padding: 13px;
}
.nav li.active
{
background-color: rgba(255, 255, 255, 0.2);
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}
.nav li.active > a
{
color: #FFF;
}
.nav > ul li:hover
{
background-color: #fde6c7;
}
.nav > ul li:hover a
{
color: #FFF;
}
.nav > ul > li:hover
{
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
color: #FFF;
background-color: rgba(255, 255, 255, 0.2);
}
.nav > ul > li.has-sub > ul
{
top: 99%;
left: 0;
z-index: 10;
}
.nav > ul > li.has-sub
{
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.has-sub span.arrow
{
text-align: center;
margin-left: 3px;
}
.nav > ul > li.has-sub > span.arrow
{
float: left;
width: 100%;
text-align: center;
margin-top: -6px;
margin-left: 0px;
}
.has-sub
{
position: relative;
}
.has-sub > ul
{
position: absolute;
top: -1px;
left: 225px;
/*display: none;*/
width: 100%;
height: 0px;
overflow: hidden;
transition: all .4s linear;
}
.has-sub > ul > li
{
background-color: rgba(55, 109, 173, 0.8);
width: 225px;
height: 0px;
overflow: hidden;
border-top: 1px solid #C0C0C0;
padding-left: 0;
padding-right: 0;
text-align: left;
}
.has-sub > ul > li:first-child
{
/*border-top: none;*/
/*border-top-left-radius: 3px;
border-top-right-radius: 3px;*/
}
.has-sub > ul > li:last-child
{
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}
.has-sub > ul li a, .has-sub > ul li:hover a
{
color: #FFF;
}
.has-sub:hover > ul
{
/*display: block;*/
width: 225px;
height: auto;
}
.has-sub:hover > ul > li
{
float: left;
width: 100%;
height: auto;
}
.has-sub > ul > li:hover
{
background-color: rgba(55, 109, 173, 0.6);
}
/*CSS For navigation - End*/
.navi-hr
{
float: left;
width: 100%;
height: 7px;
background-color: #2e72cd;
position: fixed;
top: 72px;
z-index: 1;
}
/*CSS for Logo*/
.logo
{
float: left;
width: 14.348%;
height: 100px;
border-left: 5px solid #2e72cd;
border-right: 5px solid #2e72cd;
border-bottom: 5px solid #2e72cd;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
position: fixed;
top: 0;
left: 42.326%;
/*background-color: #f9d7a2;*/
background: #feffff; /* Old browsers */
background: -moz-linear-gradient(top, #feffff 0%, #8db9f3 0%, #ddf1f9 0%, #a0d8ef 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feffff), color-stop(0%,#8db9f3), color-stop(0%,#ddf1f9), color-stop(100%,#a0d8ef)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* IE10+ */
background: linear-gradient(to bottom, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#a0d8ef',GradientType=0 ); /* IE6-9 */
z-index: 3;
}
.res-name
{
margin-top: 15px;
color: #04326b;
font-family: UVN_Mau_Tim_1;
font-size: 34px;
text-align: center;
font-weight: normal;
text-transform: uppercase;
}
.res-type
{
margin-top: 5px;
}
.res-cat
{
float: left;
width: 34%;
color: #04326b;
font-family: Caolanh;
font-size: 35px;
text-align: center;
font-weight: normal;
}
.sp
{
float: left;
width: 27%;
margin: 11% 2% 0 4%;
height: 1px;
background-color: #04326b;
}
.sp-left
{
}
.sp-right
{
}
/*CSS for Logo - End*/
.wrapper
{
float: left;
width: 73.206%;
margin-top: 80px;
margin-left: 13.397%;
}
/*CSS for slideshow*/
.horizontal-slideshow
{
float: left;
width: 99.2%;
height: 401px;
padding: 0.4%;
border: 1px solid #99c3fa;
background-color: #2e72cd;
position: relative;
}
/*CSS for Language bar*/
.icon-bar
{
width: 18.8%;
height: 8.728%;
position: absolute;
top: 1%;
right: 0.4%;
}
.lang-bar
{
background: rgba(255,255,255,0.6);
}
.lang-bar
{
float: left;
width: 100%;
height: 100%;
}
.lang-item
{
float: left;
width: 47%;
height: 63%;
margin-left: 3%;
margin-top: 3%;
}
.lang-item a
{
float: left;
width: 100%;
height: 100%;
}
.lang-icon
{
float: left;
width: 34.722%;
margin-right: 3%;
height: 100%;
}
.lang-name
{
float: left;
width: 62.265%;
height: 100%;
}
.lang-name span
{
float: left;
width: 100%;
height: 100%;
margin-top: 6%;
font-size: 13px;
font-family: UVN_Van;
color: #545454;
}
/*CSS for Service bar*/
.service
{
float: left;
width: 100%;
padding: 0.9% 0 1.7%;
}
.service-box
{
float: left;
width: 19.6%;
height: 123px;
margin-right: 0.5%;
background-color: #FFF;
position: relative;
}
.service-box:last-child
{
margin-right: 0;
}
.service-title
{
float: left;
width: 93%;
position: absolute;
top: 10%;
}
.service-title-tren
{
color: #96bff5;
float: left;
width: 91%;
font-family: "MuaThu";
font-size: 20px;
padding-left: 9%;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 1);
}
.service-title-duoi
{
float: left;
width: 92%;
padding-left: 8%;
font-family: 'Times New Roman';
font-size: 25px;
font-weight: bold;
color: #96bff5;
text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}
/*End*/
.special-seperate
{
float: left;
width: 100%;
height: 47px;
background-image: url("/Design/title-bg.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.special-seperate-title
{
float: left;
width: auto;
margin-left: 1%;
margin-right: 1%;
margin-top: 2.2%;
font-family: 'Times New Roman';
font-size: 15px;
font-weight: normal;
color: #FFF;
text-transform: uppercase;
}
.arrow
{
float: left;
width: 4.2%;
margin-top: 2.2%;
}
.body-wrapper
{
float: left;
width: 100%;
}
.lbody
{
float: left;
width: 75.3%;
margin-right: 1.6%;
}
.content
{
float: left;
width: 96.8%;
border: 1px solid #99c3fa;
padding: 1.778% 1.504% 0.957%;
font-family: Arial;
font-size: 13px;
color: #FFF;
text-align: justify;
border-radius: 3px;
line-height: 16px;
background-color: #2e72cd;
background-image: url("/Design/hoavan.png");
background-repeat: no-repeat;
background-position: top right;
}
.content img
{
max-width: 100%;
}
.content-detail
{
float: left;
width: 100%;
}
.m-read-more
{
float: left;
width: 100%;
margin-top: 2px;
text-align: right;
font-style: italic;
color: #FFF;
}
.block
{
float: left;
}
.video-block
{
float: left;
width: 35.157%;
margin-right: 2.6%;
margin-top: 27px;
/*margin-bottom: 18px;*/
}
.photo-block
{
float: left;
width: 62.243%;
margin-top: 27px;
/*margin-bottom: 18px;*/
}
.block-title
{
float: left;
width: 100%;
margin-bottom: 9px;
}
.block-title h1
{
float: left;
width: 100%;
font-family: 'Times New Roman';
font-size: 15px;
text-transform: uppercase;
color: #FFF;
}
.block-content
{
float: left;
border: 1px solid #99c3fa;
background-color: #2e72cd;
}
.video-block .block-content
{
width: 95.5%;
height: 204px;
padding: 2.222%;
position: relative;
}
.play
{
float: left;
width: 10.778%;
height: 14.509%;
position: absolute;
top: 42.944%;
left: 45.111%;
opacity: 0.2;
transition: all 0.2s ease-in-out;
}
.play:hover, .video-block .block-content:hover .play
{
opacity: 1;
width: 19.778%;
height: 24.509%;
top: 37.944%;
left: 40.111%;
}
.photo-block .block-content
{
width: 97%;
height: 204px;
padding: 1.366%;
}
.photo-wrapper
{
float: left;
width: 94.774%;
padding: 3.2% 1.493% 0.64% 3.627%;
background-color: #4e8fe6;
height: 91%;
overflow: hidden;
}
.photo-item
{
float: left;
width: 31%;
height: 82px;
margin-right: 2.254%;
margin-bottom: 2.654%;
}
.rbody
{
float: left;
width: 23.1%;
}
.booking-block
{
width: 100%;
}
.contact-block
{
width: 100%;
margin-top: 27px;
}
.contact-wrapper
{
float: left;
width: 86.725%;
height: 86.225%;
padding: 6.637%;
background-color: #4e8fe6;
}
.booking-block .block-content, .contact-block .block-content
{
width: 94.5%;
height: 170px;
padding: 2.722%;
background-color: #2e72cd;
}
.contact-block .block-content
{
min-height: 203px;
}
.phone
{
float: left;
width: 21.164%;
margin: 5px 0;
}
.phone-sp
{
float: left;
width: 100%;
height: 1px;
border-top: 1px solid #65a4f8;
background-color: #3a7acf;
}
.contact-item
{
float: left;
width: 100%;
margin-top: 10px;
margin-bottom: 5px;
font-family: 'Times New Roman';
color: #FFF;
}
.c-phone, .c-name, .c-email
{
float: left;
width: 100%;
}
.c-phone
{
font-size: 25px;
font-weight: bold;
}
.c-name
{
font-size: 15px;
font-weight: bold;
}
.c-email
{
font-family: Arial;
font-size: 13px;
}
.footer
{
float: left;
width: 100%;
background-color: #002149;
margin-top: 19px;
border-top: 1px solid #001329;
}
.l-footer, .r-footer
{
float: left;
width: 50%;
}
.footer-wrapper
{
float: left;
width: 71.206%;
margin-left: 13.397%;
padding: 1%;
font-family: Arial;
font-size: 13px;
color: #FFF;
}
.l-footer
{
}
.l-footer p:first-child
{
margin-bottom: 5px;
}
.l-footer p:last-child
{
}
.r-footer a
{
color: #FFF;
}
.r-footer
{
text-align: right;
}
.r-footer p:first-child
{
/*margin-bottom: 5px;*/
}
.r-footer p:last-child
{
}
.product-container
{
float: left;
width: 102%;
margin-top: 20px;
}
.check-rate-result-mess
{
color: #ddd491;
float: left;
width: 100%;
font-family: UVN_ChuKy;
font-size: 17px;
text-align: center;
margin-bottom: 10px;
margin-top: -10px;
line-height: 20px;
}
.product-box
{
float: left;
width: 30%;
margin-right: 2%;
margin-bottom: 19px;
padding: 0.5%;
/*border: 1px solid #840404;*/
height: 306px;
-webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
background-color: #FFF;
position: relative;
}
.product-box:hover
{
background-color: #fcf7e8;
}
.product-box img
{
width: 100%;
height: 135px;
border-bottom: 1px solid #e0bbef;
}
.product-title
{
width: 100%;
text-align: center;
margin-top: 5px;
margin-bottom: 5px;
}
.product-title a
{
/*float: left;*/
width: 100%;
font-family: UTM_DINH_TRAN;
font-size: 30px;
color: #840404;
}
.product-title a:hover
{
color: #d03c3c;
}
.product-seperate
{
width: 100%;
height: 1px;
/*margin: 5px auto 7px;*/
background-color: #840404;
}
.product-sumary
{
width: 100%;
margin: 15px auto 0;
text-align: center;
color: #6f6f6f;
font-family: "UVN_Tin_Tuc_Nhe";
font-size: 14px;
}
.product-box .intro-readmore:hover
{
border: none;
}
.titlecategory
{
font-family: UTM_DINH_TRAN;
font-size: 35px;
color: #443d37;
}
.intro-readmore
{
background-color: #e0c34b;
position: absolute;
bottom: 4%;
right: 32%;
width: 36%;
height: 30px;
border-radius: 3px;
background-image: url("/Design/pattern_06.png");
background-position: top right;
background-repeat: no-repeat;
background-size: 40% 100%;
}
.intro-readmore a
{
color: #FFF;
margin-top: 7%;
float: left;
text-align: center;
width: 100%;
font-family: UVN_Tin_Tuc_Nhe;
}
.intro-readmore:hover
{
/*background-color: #f8e180;*/
}
/* CSS For Room detail*/
.left-block
{
float: left;
width: 60%;
}
.main-pic
{
float: left;
height: 300px;
width: 97%;
margin-bottom: 5px;
/*border: 1px solid #848990;*/
text-align: center;
background-color: rgba(189,199,210,0.3);
}
.main-pic img
{
/*width: 100%;*/
height: 100%;
max-width: 100%;
/*border: 1px solid #848990;*/
border: 1px solid #848990;
}
.thumb-pic
{
float: left;
width: 100%;
}
.thumb-item
{
/*border: 1px solid;*/
float: left;
height: 72px;
margin-bottom: 1%;
margin-right: 1.5%;
margin-top: 0.5%;
width: 23%;
}
.nav-thumb
{
width: 100%;
height: 100%;
border: 1px solid #848990;
}
.item-active
{
border: 1px solid #009bd5;
}
.right-block
{
float: left;
width: 39%;
text-align: justify;
font-family: UVN_Tin_Tuc_Nhe;
}
.titlepro
{
font-weight: bold;
font-size: 15px;
color: #C0C0C0;
line-height: 16px;
}
.des-info, .fared
{
font-size: 15px;
}
.fared
{
}
.lbdetail
{
float: left;
font-size: 15px;
margin-left: 26px;
margin-top: -15px;
}
.contactproduct
{
color: #FFF;
float: right;
text-align: center;
font-family: UVN_Tin_Tuc_Nhe;
font-size: 17px;
background-color: #e0c34b;
width: 36%;
height: 30px;
border-radius: 2px;
background-image: url("/Design/pattern_06.png");
background-position: top right;
background-repeat: no-repeat;
background-size: 40% 100%;
padding-top: 2%;
margin-bottom: 5%;
margin-right: 3%;
}
.contactproduct:hover
{
/*background-color: #916ea0;*/
}
.right-block hr
{
float: left;
width: 97%;
/*border-bottom: 1px dashed #3399FF;*/
}
.right-block .line-witdth-fix-parent
{
text-align: left;
}
.pic-title
{
font-family: UVN_MAU_TIM_2;
font-size: 23px;
color: #443d37;
margin-left: 1%;
}
/*CSS FOR Check rate*/
.check-rate-wrapper
{
float: left;
width: 100%;
}
.right-footer-reservation
{
width: 45%;
height: 216px;
margin: 1% auto 2%;
background-color: rgba(244,244,244,0.8);
-webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
/*background-color: rgba(189,199,210,0.8);*/
}
.right-footer-reservation-wraper, .right-footer-info-wraper
{
width: 95%;
margin: 0 auto;
}
.reservation-input
{
float: left;
width: 100%;
height: 25px;
border: 1px solid #FFF;
margin-top: 7px;
margin-bottom: 7px;
background-color: #dee3e9;
font-family: Arial;
font-size: 12px;
position: relative;
}
.half
{
width: 47.3%;
margin-right: 4%;
}
div.half:last-child
{
margin-right: 0;
}
.right-footer-reservation p
{
float: left;
width: 100%;
text-align: center;
margin-bottom: 5%;
height: 25px;
font-family: UTM_DINH_TRAN;
font-size: 45px;
color: #443d37;
}
.select-number, .chose-date
{
float: left;
width: 100%;
height: 100%;
border: none;
margin: 0;
padding: 0;
box-shadow: none;
background-color: transparent;
color: #7a7877;
padding-left: 5px;
}
.select-number
{
/*width: 107px;*/
}
.chose-date
{
/*width: 162px;*/
}
.input-icon
{
position: absolute;
top: 0;
right: 0;
background-color: #dee3e9;
height: 25px;
width: 24px;
}
.input-icon img.date
{
float: left;
margin-top: 5px;
margin-right: 8px;
}
.input-icon img.number
{
float: left;
margin-left: 13px;
margin-top: 9px;
}
.btnCheckRate
{
color: #FFF;
float: right;
text-align: center;
font-family: UVN_Tin_Tuc_Nhe;
background-color: #e0c34b;
width: 27%;
height: 36px;
border-radius: 3px;
background-image: url("/Design/pattern_06.png");
background-position: top right;
background-repeat: no-repeat;
background-size: 40% 100%;
font-size: 18px;
border: none;
margin-top: 1%;
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_ctl00_Head1"><title>
Resort Suối Hồng tại Mũi Né
</title>
<meta name="Keywords" content="Resort Suối Hồng, resort tại Mũi Né" />
<meta name="description" content="Resort Suối Hồng Mũi Né là nơi nghĩ dưỡng lý tưởng khi đến với Phan Thiết" />
<meta name="generator" content="" />
</head>
<body>
<form>
<div class="container">
<div class="navigation">
<div class="navigation-wrapper">
<div class="nav navigation-left">
<ul><li class='active'><a href='/vn/home-12.html'> <span>TRANG CHỦ</span></a></li><li><a href='/vn/article/introduction-suoi-hong-resort-14-1.html'> <span>GIỚI THIỆU</span></a></li><li class='has-sub'><a href='/vn/danh-sach-phong-2-2.html'> <span>PHÒNG NGỦ</span></a><ul><li><a href='/vn/phong-ngu-1-2.html'> <span>Phòng một giường</span></a></li><li><a href='/vn/phong-ngu-2-2.html'> <span>Phòng hai giường</span></a></li></ul></li><li class='has-sub'><a href='javascript:void();'> <span>DỊCH VỤ</span></a><ul><li><a href='/vn/article/phuc-vu-khach-doan-23-3.html'> <span>Phục vụ khách đoàn</span></a></li><li><a href='/vn/article/dich-vu-tam-bien-24-3.html'> <span>Dịch vụ tắm biển</span></a></li></ul></li></ul>
</div>
<div class="nav navigation-right">
<ul><li><a href='/vn/category/information-4-4.html'> <span>THÔNG TIN</span></a></li><li><a href='/vn/gallery-6.html'> <span>HÌNH ẢNH</span></a></li><li><a href='/vn/video-5.html'> <span>VIDEO -CLIPS</span></a></li><li><a href='/vn/contact-7.html'> <span>LIÊN HỆ</span></a></li></ul>
</div>
</div>
</div>
<div class="navi-hr"></div>
<div class="logo">
<a href="/vn/home-12.html" class="link">
<h1 class="res-name line-fix-parent-width">Suối Hồng</h1>
<div class="res-type line-fix-parent-width">
<span class="sp sp-left"></span>
<span class="res-cat">Resort</span>
<span class="sp sp-left"></span>
</div>
</a>
</div>
<div class="wrapper">
</div>
</form>
</body>
</html>
*
{
margin: 0;
padding: 0;
text-decoration: none;
list-style: none;
border: none;
outline: none;
}
#font-face
{
font-family: UTM_Alberta_Heavy;
src: url("/Styles/CSS/Font/UTM_Alberta_Heavy/UTM ALBERTA HEAVY.TTF");
}
#font-face
{
font-family: Pristina;
src: url("/Styles/CSS/Font/Pristina/PRISTINA_0.TTF");
}
#font-face
{
font-family: UVN_Van;
src: url("/Styles/CSS/Font/UVN_Van/UVNVAN_R.TTF");
}
#font-face
{
font-family: UTM_Pierre;
src: url("/Styles/CSS/Font/UTM_Pierre/UTM PIERRE.TTF");
}
#font-face
{
font-family: UVN_MAU_TIM_1;
src: url("/Styles/CSS/Font/UVN_Mau_Tim_1/UVNMAUTIM1.TTF");
}
#font-face
{
font-family: UVN_MAU_TIM_2;
src: url("/Styles/CSS/Font/UVN_Mau_Tim_2/UVNMAUTIM2.TTF");
}
#font-face
{
font-family: UTM_DINH_TRAN;
src: url("/Styles/CSS/Font/UTM_Dinh_Tran/UTM DINH TRAN.TTF");
}
#font-face
{
font-family: UVN_Tin_Tuc_Nhe;
src: url("/Styles/CSS/Font/UVN_Tin_Tuc_Nhe/UVNTINTUCNHE_R.TTF");
}
#font-face
{
font-family: MuaThu;
src: url("/Styles/CSS/Font/MuaThu/UVNMUATHU.TTF");
}
#font-face
{
font-family: Caolanh;
src: url("/Styles/CSS/Font/Caolanh/CAOLANH.TTF");
}
.img
{
float: left;
width: 100%;
height: 100%;
}
.link
{
float: left;
width: 100%;
height: 100%;
}
h1
{
font-weight: normal;
}
body, .line-fix-parent-width, .container, .header
{
float: left;
width: 100%;
}
body
{
background-color: #381004;
background-image: url("/Design/bg.png");
}
.container
{
}
/* CSS for navigation-left */
.navigation
{
float: left;
width: 100%;
height: 72px;
background-color: rgba(253,230,199,1);
background-image: url("/Design/nav-bg.png");
background-repeat: repeat;
position: fixed;
top: 0;
z-index: 2;
}
/*CSS For navigation*/
.navigation-wrapper
{
float: left;
width: 73.206%;
margin-left: 13.397%;
}
.nav
{
float: left;
width: 39%;
}
navigation-left
{
float: left;
}
.navigation-right
{
float: right;
}
.nav ul
{
float: left;
width: 100%;
}
.nav ul li
{
float: left;
font-family: UVN_Van;
}
.nav ul li a
{
padding: 13px;
color: #FFF;
font-size: 13px;
float: left;
}
.nav > ul > li
{
margin-top: 16px;
}
.nav > ul > li > a
{
padding: 13px;
}
.nav li.active
{
background-color: rgba(255, 255, 255, 0.2);
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}
.nav li.active > a
{
color: #FFF;
}
.nav > ul li:hover
{
background-color: #fde6c7;
}
.nav > ul li:hover a
{
color: #FFF;
}
.nav > ul > li:hover
{
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
color: #FFF;
background-color: rgba(255, 255, 255, 0.2);
}
.nav > ul > li.has-sub > ul
{
top: 99%;
left: 0;
z-index: 10;
}
.nav > ul > li.has-sub
{
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.has-sub span.arrow
{
text-align: center;
margin-left: 3px;
}
.nav > ul > li.has-sub > span.arrow
{
float: left;
width: 100%;
text-align: center;
margin-top: -6px;
margin-left: 0px;
}
.has-sub
{
position: relative;
}
.has-sub > ul
{
position: absolute;
top: -1px;
left: 225px;
/*display: none;*/
width: 100%;
height: 0px;
overflow: hidden;
transition: all .4s linear;
}
.has-sub > ul > li
{
background-color: rgba(55, 109, 173, 0.8);
width: 225px;
height: 0px;
overflow: hidden;
border-top: 1px solid #C0C0C0;
padding-left: 0;
padding-right: 0;
text-align: left;
}
.has-sub > ul > li:first-child
{
/*border-top: none;*/
/*border-top-left-radius: 3px;
border-top-right-radius: 3px;*/
}
.has-sub > ul > li:last-child
{
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}
.has-sub > ul li a, .has-sub > ul li:hover a
{
color: #FFF;
}
.has-sub:hover > ul
{
/*display: block;*/
width: 225px;
height: auto;
}
.has-sub:hover > ul > li
{
float: left;
width: 100%;
height: auto;
}
.has-sub > ul > li:hover
{
background-color: rgba(55, 109, 173, 0.6);
}
/*CSS For navigation - End*/
.navi-hr
{
float: left;
width: 100%;
height: 7px;
background-color: #2e72cd;
position: fixed;
top: 72px;
z-index: 1;
}
/*CSS for Logo*/
.logo
{
float: left;
width: 14.348%;
height: 100px;
border-left: 5px solid #2e72cd;
border-right: 5px solid #2e72cd;
border-bottom: 5px solid #2e72cd;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
position: fixed;
top: 0;
left: 42.326%;
/*background-color: #f9d7a2;*/
background: #feffff; /* Old browsers */
background: -moz-linear-gradient(top, #feffff 0%, #8db9f3 0%, #ddf1f9 0%, #a0d8ef 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feffff), color-stop(0%,#8db9f3), color-stop(0%,#ddf1f9), color-stop(100%,#a0d8ef)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* IE10+ */
background: linear-gradient(to bottom, #feffff 0%,#8db9f3 0%,#ddf1f9 0%,#a0d8ef 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#a0d8ef',GradientType=0 ); /* IE6-9 */
z-index: 3;
}
.res-name
{
margin-top: 15px;
color: #04326b;
font-family: UVN_Mau_Tim_1;
font-size: 34px;
text-align: center;
font-weight: normal;
text-transform: uppercase;
}
.res-type
{
margin-top: 5px;
}
.res-cat
{
float: left;
width: 34%;
color: #04326b;
font-family: Caolanh;
font-size: 35px;
text-align: center;
font-weight: normal;
}
.sp
{
float: left;
width: 27%;
margin: 11% 2% 0 4%;
height: 1px;
background-color: #04326b;
}
.sp-left
{
}
.sp-right
{
}
/*CSS for Logo - End*/
.wrapper
{
float: left;
width: 73.206%;
margin-top: 80px;
margin-left: 13.397%;
}
/*CSS for slideshow*/
.horizontal-slideshow
{
float: left;
width: 99.2%;
height: 401px;
padding: 0.4%;
border: 1px solid #99c3fa;
background-color: #2e72cd;
position: relative;
}
/*CSS for Language bar*/
.icon-bar
{
width: 18.8%;
height: 8.728%;
position: absolute;
top: 1%;
right: 0.4%;
}
.lang-bar
{
background: rgba(255,255,255,0.6);
}
.lang-bar
{
float: left;
width: 100%;
height: 100%;
}
.lang-item
{
float: left;
width: 47%;
height: 63%;
margin-left: 3%;
margin-top: 3%;
}
.lang-item a
{
float: left;
width: 100%;
height: 100%;
}
.lang-icon
{
float: left;
width: 34.722%;
margin-right: 3%;
height: 100%;
}
.lang-name
{
float: left;
width: 62.265%;
height: 100%;
}
.lang-name span
{
float: left;
width: 100%;
height: 100%;
margin-top: 6%;
font-size: 13px;
font-family: UVN_Van;
color: #545454;
}
/*CSS for Service bar*/
.service
{
float: left;
width: 100%;
padding: 0.9% 0 1.7%;
}
.service-box
{
float: left;
width: 19.6%;
height: 123px;
margin-right: 0.5%;
background-color: #FFF;
position: relative;
}
.service-box:last-child
{
margin-right: 0;
}
.service-title
{
float: left;
width: 93%;
position: absolute;
top: 10%;
}
.service-title-tren
{
color: #96bff5;
float: left;
width: 91%;
font-family: "MuaThu";
font-size: 20px;
padding-left: 9%;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 1);
}
.service-title-duoi
{
float: left;
width: 92%;
padding-left: 8%;
font-family: 'Times New Roman';
font-size: 25px;
font-weight: bold;
color: #96bff5;
text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}
/*End*/
.special-seperate
{
float: left;
width: 100%;
height: 47px;
background-image: url("/Design/title-bg.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.special-seperate-title
{
float: left;
width: auto;
margin-left: 1%;
margin-right: 1%;
margin-top: 2.2%;
font-family: 'Times New Roman';
font-size: 15px;
font-weight: normal;
color: #FFF;
text-transform: uppercase;
}
.arrow
{
float: left;
width: 4.2%;
margin-top: 2.2%;
}
.body-wrapper
{
float: left;
width: 100%;
}
.lbody
{
float: left;
width: 75.3%;
margin-right: 1.6%;
}
.content
{
float: left;
width: 96.8%;
border: 1px solid #99c3fa;
padding: 1.778% 1.504% 0.957%;
font-family: Arial;
font-size: 13px;
color: #FFF;
text-align: justify;
border-radius: 3px;
line-height: 16px;
background-color: #2e72cd;
background-image: url("/Design/hoavan.png");
background-repeat: no-repeat;
background-position: top right;
}
.content img
{
max-width: 100%;
}
.content-detail
{
float: left;
width: 100%;
}
.m-read-more
{
float: left;
width: 100%;
margin-top: 2px;
text-align: right;
font-style: italic;
color: #FFF;
}
.block
{
float: left;
}
.video-block
{
float: left;
width: 35.157%;
margin-right: 2.6%;
margin-top: 27px;
/*margin-bottom: 18px;*/
}
.photo-block
{
float: left;
width: 62.243%;
margin-top: 27px;
/*margin-bottom: 18px;*/
}
.block-title
{
float: left;
width: 100%;
margin-bottom: 9px;
}
.block-title h1
{
float: left;
width: 100%;
font-family: 'Times New Roman';
font-size: 15px;
text-transform: uppercase;
color: #FFF;
}
.block-content
{
float: left;
border: 1px solid #99c3fa;
background-color: #2e72cd;
}
.video-block .block-content
{
width: 95.5%;
height: 204px;
padding: 2.222%;
position: relative;
}
.play
{
float: left;
width: 10.778%;
height: 14.509%;
position: absolute;
top: 42.944%;
left: 45.111%;
opacity: 0.2;
transition: all 0.2s ease-in-out;
}
.play:hover, .video-block .block-content:hover .play
{
opacity: 1;
width: 19.778%;
height: 24.509%;
top: 37.944%;
left: 40.111%;
}
.photo-block .block-content
{
width: 97%;
height: 204px;
padding: 1.366%;
}
.photo-wrapper
{
float: left;
width: 94.774%;
padding: 3.2% 1.493% 0.64% 3.627%;
background-color: #4e8fe6;
height: 91%;
overflow: hidden;
}
.photo-item
{
float: left;
width: 31%;
height: 82px;
margin-right: 2.254%;
margin-bottom: 2.654%;
}
.rbody
{
float: left;
width: 23.1%;
}
.booking-block
{
width: 100%;
}
.contact-block
{
width: 100%;
margin-top: 27px;
}
.contact-wrapper
{
float: left;
width: 86.725%;
height: 86.225%;
padding: 6.637%;
background-color: #4e8fe6;
}
.booking-block .block-content, .contact-block .block-content
{
width: 94.5%;
height: 170px;
padding: 2.722%;
background-color: #2e72cd;
}
.contact-block .block-content
{
min-height: 203px;
}
.phone
{
float: left;
width: 21.164%;
margin: 5px 0;
}
.phone-sp
{
float: left;
width: 100%;
height: 1px;
border-top: 1px solid #65a4f8;
background-color: #3a7acf;
}
.contact-item
{
float: left;
width: 100%;
margin-top: 10px;
margin-bottom: 5px;
font-family: 'Times New Roman';
color: #FFF;
}
.c-phone, .c-name, .c-email
{
float: left;
width: 100%;
}
.c-phone
{
font-size: 25px;
font-weight: bold;
}
.c-name
{
font-size: 15px;
font-weight: bold;
}
.c-email
{
font-family: Arial;
font-size: 13px;
}
.footer
{
float: left;
width: 100%;
background-color: #002149;
margin-top: 19px;
border-top: 1px solid #001329;
}
.l-footer, .r-footer
{
float: left;
width: 50%;
}
.footer-wrapper
{
float: left;
width: 71.206%;
margin-left: 13.397%;
padding: 1%;
font-family: Arial;
font-size: 13px;
color: #FFF;
}
.l-footer
{
}
.l-footer p:first-child
{
margin-bottom: 5px;
}
.l-footer p:last-child
{
}
.r-footer a
{
color: #FFF;
}
.r-footer
{
text-align: right;
}
.r-footer p:first-child
{
/*margin-bottom: 5px;*/
}
.r-footer p:last-child
{
}
.product-container
{
float: left;
width: 102%;
margin-top: 20px;
}
.check-rate-result-mess
{
color: #ddd491;
float: left;
width: 100%;
font-family: UVN_ChuKy;
font-size: 17px;
text-align: center;
margin-bottom: 10px;
margin-top: -10px;
line-height: 20px;
}
.product-box
{
float: left;
width: 30%;
margin-right: 2%;
margin-bottom: 19px;
padding: 0.5%;
/*border: 1px solid #840404;*/
height: 306px;
-webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
background-color: #FFF;
position: relative;
}
.product-box:hover
{
background-color: #fcf7e8;
}
.product-box img
{
width: 100%;
height: 135px;
border-bottom: 1px solid #e0bbef;
}
.product-title
{
width: 100%;
text-align: center;
margin-top: 5px;
margin-bottom: 5px;
}
.product-title a
{
/*float: left;*/
width: 100%;
font-family: UTM_DINH_TRAN;
font-size: 30px;
color: #840404;
}
.product-title a:hover
{
color: #d03c3c;
}
.product-seperate
{
width: 100%;
height: 1px;
/*margin: 5px auto 7px;*/
background-color: #840404;
}
.product-sumary
{
width: 100%;
margin: 15px auto 0;
text-align: center;
color: #6f6f6f;
font-family: "UVN_Tin_Tuc_Nhe";
font-size: 14px;
}
.product-box .intro-readmore:hover
{
border: none;
}
.titlecategory
{
font-family: UTM_DINH_TRAN;
font-size: 35px;
color: #443d37;
}
.intro-readmore
{
background-color: #e0c34b;
position: absolute;
bottom: 4%;
right: 32%;
width: 36%;
height: 30px;
border-radius: 3px;
background-image: url("/Design/pattern_06.png");
background-position: top right;
background-repeat: no-repeat;
background-size: 40% 100%;
}
.intro-readmore a
{
color: #FFF;
margin-top: 7%;
float: left;
text-align: center;
width: 100%;
font-family: UVN_Tin_Tuc_Nhe;
}
.intro-readmore:hover
{
/*background-color: #f8e180;*/
}
/* CSS For Room detail*/
.left-block
{
float: left;
width: 60%;
}
.main-pic
{
float: left;
height: 300px;
width: 97%;
margin-bottom: 5px;
/*border: 1px solid #848990;*/
text-align: center;
background-color: rgba(189,199,210,0.3);
}
.main-pic img
{
/*width: 100%;*/
height: 100%;
max-width: 100%;
/*border: 1px solid #848990;*/
border: 1px solid #848990;
}
.thumb-pic
{
float: left;
width: 100%;
}
.thumb-item
{
/*border: 1px solid;*/
float: left;
height: 72px;
margin-bottom: 1%;
margin-right: 1.5%;
margin-top: 0.5%;
width: 23%;
}
.nav-thumb
{
width: 100%;
height: 100%;
border: 1px solid #848990;
}
.item-active
{
border: 1px solid #009bd5;
}
.right-block
{
float: left;
width: 39%;
text-align: justify;
font-family: UVN_Tin_Tuc_Nhe;
}
.titlepro
{
font-weight: bold;
font-size: 15px;
color: #C0C0C0;
line-height: 16px;
}
.des-info, .fared
{
font-size: 15px;
}
.fared
{
}
.lbdetail
{
float: left;
font-size: 15px;
margin-left: 26px;
margin-top: -15px;
}
.contactproduct
{
color: #FFF;
float: right;
text-align: center;
font-family: UVN_Tin_Tuc_Nhe;
font-size: 17px;
background-color: #e0c34b;
width: 36%;
height: 30px;
border-radius: 2px;
background-image: url("/Design/pattern_06.png");
background-position: top right;
background-repeat: no-repeat;
background-size: 40% 100%;
padding-top: 2%;
margin-bottom: 5%;
margin-right: 3%;
}
.contactproduct:hover
{
/*background-color: #916ea0;*/
}
.right-block hr
{
float: left;
width: 97%;
/*border-bottom: 1px dashed #3399FF;*/
}
.right-block .line-witdth-fix-parent
{
text-align: left;
}
.pic-title
{
font-family: UVN_MAU_TIM_2;
font-size: 23px;
color: #443d37;
margin-left: 1%;
}
/*CSS FOR Check rate*/
.check-rate-wrapper
{
float: left;
width: 100%;
}
.right-footer-reservation
{
width: 45%;
height: 216px;
margin: 1% auto 2%;
background-color: rgba(244,244,244,0.8);
-webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.3);
/*background-color: rgba(189,199,210,0.8);*/
}
.right-footer-reservation-wraper, .right-footer-info-wraper
{
width: 95%;
margin: 0 auto;
}
.reservation-input
{
float: left;
width: 100%;
height: 25px;
border: 1px solid #FFF;
margin-top: 7px;
margin-bottom: 7px;
background-color: #dee3e9;
font-family: Arial;
font-size: 12px;
position: relative;
}
.half
{
width: 47.3%;
margin-right: 4%;
}
div.half:last-child
{
margin-right: 0;
}
.right-footer-reservation p
{
float: left;
width: 100%;
text-align: center;
margin-bottom: 5%;
height: 25px;
font-family: UTM_DINH_TRAN;
font-size: 45px;
color: #443d37;
}
.select-number, .chose-date
{
float: left;
width: 100%;
height: 100%;
border: none;
margin: 0;
padding: 0;
box-shadow: none;
background-color: transparent;
color: #7a7877;
padding-left: 5px;
}
.select-number
{
/*width: 107px;*/
}
.chose-date
{
/*width: 162px;*/
}
.input-icon
{
position: absolute;
top: 0;
right: 0;
background-color: #dee3e9;
height: 25px;
width: 24px;
}
.input-icon img.date
{
float: left;
margin-top: 5px;
margin-right: 8px;
}
.input-icon img.number
{
float: left;
margin-left: 13px;
margin-top: 9px;
}
.btnCheckRate
{
color: #FFF;
float: right;
text-align: center;
font-family: UVN_Tin_Tuc_Nhe;
background-color: #e0c34b;
width: 27%;
height: 36px;
border-radius: 3px;
background-image: url("/Design/pattern_06.png");
background-position: top right;
background-repeat: no-repeat;
background-size: 40% 100%;
font-size: 18px;
border: none;
margin-top: 1%;
}
<form>
<div class="container">
<div class="navigation">
<div class="navigation-wrapper">
<div class="nav navigation-left">
<ul><li class='active'><a href='/vn/home-12.html'> <span>TRANG CHỦ</span></a></li><li><a href='/vn/article/introduction-suoi-hong-resort-14-1.html'> <span>GIỚI THIỆU</span></a></li><li class='has-sub'><a href='/vn/danh-sach-phong-2-2.html'> <span>PHÒNG NGỦ</span></a><ul><li><a href='/vn/phong-ngu-1-2.html'> <span>Phòng một giường</span></a></li><li><a href='/vn/phong-ngu-2-2.html'> <span>Phòng hai giường</span></a></li></ul></li><li class='has-sub'><a href='javascript:void();'> <span>DỊCH VỤ</span></a><ul><li><a href='/vn/article/phuc-vu-khach-doan-23-3.html'> <span>Phục vụ khách đoàn</span></a></li><li><a href='/vn/article/dich-vu-tam-bien-24-3.html'> <span>Dịch vụ tắm biển</span></a></li></ul></li></ul>
</div>
<div class="logo">
<a href="/vn/home-12.html" class="link">
<h1 class="res-name line-fix-parent-width">Suối Hồng</h1>
<div class="res-type line-fix-parent-width">
<span class="sp sp-left"></span>
<span class="res-cat">Resort</span>
<span class="sp sp-left"></span>
</div>
</a>
</div>
<div class="nav navigation-right">
<ul><li><a href='/vn/category/information-4-4.html'> <span>THÔNG TIN</span></a></li><li><a href='/vn/gallery-6.html'> <span>HÌNH ẢNH</span></a></li><li><a href='/vn/video-5.html'> <span>VIDEO -CLIPS</span></a></li><li><a href='/vn/contact-7.html'> <span>LIÊN HỆ</span></a></li></ul>
</div>
</div>
</div>
<div class="navi-hr"></div>
<div class="wrapper">
</div>
</form>
See this demo it'll help.
The child (the menu items) inherit the parent's z-index context. In the context of the parent it has an index of 10, but it only has an index of 2 within the page as the navigation does.
If it's possible, remove the z-index of your navigation. Alternatively, place the logo inside navigation and it will be inside the same context as your block menu.
The problem is that you either have the logo over the menus or you have the navigation background over the logo.
If you don't want to change your html, one thing you could do is make the navigation background transparent and apply the color to its parent.

Make inner div match height of outer div

So I am developing a little forum and I ran into a little design problem. The sidebar in each post is supposed to match the height of the content (the text written) but the sidebar only goes to the height necessary to display everything and then stops.
JSFiddle: http://jsfiddle.net/9stPU/5/
CSS:
.forumContent {
list-style-type: none;
background: #34495e;
letter-spacing: 1px;
width: 1170px;
margin: 0;
color: white;
}
.forumContent li {
padding: 0 0 0 10px; /* 5px 0 5px 10px */
margin-left: -40px;
min-height: 41px;
overflow: auto;
border-bottom: 1px solid #000;
}
.forumContent li:last-child {
border-bottom: none;
}
.forumContent li h3 {
margin: 0;
padding: 0;
font-size: 14px;
}
.forumContent li small {
font-size: 9px;
}
.forumContent a {
color: white;
text-decoration: none;
width: 100%;
height: 100%;
}
.forumContent li:hover {
background: #3E5368;
}
.forumContent a li {
float: left;
width: 366px;
}
.forumContent a li:first-child {
width: 100px;
}
.forumContent li .new b {
font-size: 12px;
}
.forumContent li .new {
float: right;
margin-right: 8px;
margin-top: -2px;
font-size: 9px;
background: #2c3e50;
padding: 4px;
border-radius: 6px;
}
.topicUser {
width: 150px;
float: left;
background: #000;
margin-left: -10px;
min-height: 100%;
height: 100%;
}
.topicUser h3 {
margin-left: 2 .5px !important;
}
.topicUser small {
position: absolute;
margin-top: -15px;
margin-left: 7 .5px;
}
.topicUser p {
margin-top: 2px;
margin-left: 3px;
}
.topicContent {
width: 1060px;
float: right;
height: 100%;
}
.topicContent p {
padding: 5px;
}
You can use display:table; properties: DEMO
a single patch to test it ;
li {
display:table;
}
li > div {
display:table-cell;
float:none!important;/* float kills display; so do not use it with display; */
vertical-align:top;
}
Put:
.forumContent li {
padding: 0 0 0 10px; /* 5px 0 5px 10px */
margin-left: -40px;
min-height: 41px;
overflow: auto;
border-bottom: 1px solid #000;
position: relative;
}
and
.topicUser {
width: 150px;
float: left;
background: #000;
margin-left: -10px;
min-height: 100%;
height: 100%;
position:absolute;
}
notice position properties.
Look here http://jsfiddle.net/9stPU/6/

Sprite not working (background not adjusting and link is non-existant?)

This is so frustrating because at one point it was working and now it isn't. I have social networking buttons at the bottom of a site i am using. I am using a background image so when the user hovers over a button it changes from the black and white image to the color version. This was working before and i don't remember changing anything but now it doesn't work and it's really frustrating.
Here is my HTML
<!-- SOCIAL NETWORKING -->
<div class="sn">
<div class="fb">
</div>
<div class="tw">
</div>
<div class="in">
</div>
</div>
And my CSS
.footwrap {
width: 100%;
height: 100px;
background-color: #444;
}
.footer {
display: block;
width: 1100px;
margin: auto;
height: 100px;
background-color: #444;
position: relative;
bottom: 0px;
}
.comm {
width: 1050px;
margin: auto;
height: 100px;
font-size: 10px;
margin-top: 20px;
text-align: center;
}
.sn {
width: 120px;
float: right;
margin-top: 40px;
margin-right: 0px;
display: inline-block;
}
.fb {
width: 20px;
height: 20px;
display: inline-block;
}
.fb a {
display: block;
width: 20px;
height: 20px;
background-image: url(images/snicons2.jpg);
background-position: 0px 0px;
}
.fb a:hover {
background-position: 0px 20px;
}
.tw {
width: 20px;
height: 20px;
display: inline-block;
padding-left: 10px;
}
.tw a {
display: block;
width: 20px;
height: 20px;
background-image: url(images/snicons2.jpg);
background-position: 40px 0px;
}
.tw a:hover {
background-position: 40px 20px;
}
.in {
width: 20px;
height: 20px;
display: inline-block;
padding-left: 10px;
}
.in a {
display: block;
width: 20px;
height: 20px;
background-image: url(images/snicons2.jpg);
background-position: 20px 0px;
}
.in a:hover {
background-position: 20px 20px;
}
I added in the .footwrap and .footer classes because they would apply to the social networking buttons although I believe they have no effect. But just in case I missed something...
ALSO!!! not only does the background not change on hover but it's like there isn't even a link there.
don't use display:block/inline/inline-block
combine the background and position into one line, it's better
use margin, not padding.
add full url into the hover images
add height and width into the hover images
add the image to the div, not the a
use negative numbers, not positive numbers.
make sure the image at http://yoursite.com/images/snicons2.jpg - if not, then update the URL accordingly.
I can't test to see if it's working because you need to post the full URL to the sprite.
But here is my suggested solution:
Thanks for giving the full URL to the image. Here is the solution:
.footwrap {
width: 100%;
height: 100px;
background-color: #444;
}
.footer {
display: block;
width: 1100px;
margin: auto;
height: 100px;
background-color: #444;
position: relative;
bottom: 0px;
}
.comm {
width: 1050px;
margin: auto;
height: 100px;
font-size: 10px;
margin-top: 20px;
text-align: center;
}
.sn {
width: 120px;
float: right;
margin-top: 40px;
margin-right: 0px;
}
.fb {
margin-left: 10px;
float: left;
width: 20px;
height: 20px;
background: url(http://thewolv.es/Website/images/snIcons2.jpg) 0px 0px no-repeat;
}
.fb:hover {
width: 20px;
height: 20px;
background: url(http://thewolv.es/Website/images/snicons2.jpg) 0px -20px no-repeat;
}
.tw {
margin-left: 10px;
float: left;
width: 20px;
height: 20px;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -40px 0px no-repeat;
}
.tw:hover {
width: 20px;
height: 20px;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -40px -20px no-repeat;
}
.in {
margin-left: 10px;
float: left;
width: 20px;
height: 20px;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -20px 0px no-repeat;
}
.in:hover {
width: 20px;
height: 20px;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -20px -20px no-repeat;
}
In jsbin:
Displayed vertically:
http://jsbin.com/EburEdu/1/
Displayed horizontally:
http://jsbin.com/UviHozE/1/
FOR YOU - REPLACEMENT STYLE.CSS FOR YOUR SITE:
(because you said it's not working, I updated your entire style.css stylesheet. The code above works perfectly, I just needed to make some other changes for your specific site that won't affect other people looking for a solution):
html {
height: 100%;
border: none;
}
body {
margin: 0;
padding: 0;
min-width: 1100px;
height: 100%;
overflow: scroll;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, #FAFAFA 0%, #DDDDDD 100%);
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, #FAFAFA 0%, #DDDDDD 100%);
/* Opera */
background-image: -o-linear-gradient(top, #FAFAFA 0%, #DDDDDD 100%);
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FAFAFA), color-stop(1, #DDDDDD));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, #FAFAFA 0%, #DDDDDD 100%);
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(to bottom, #FAFAFA 0%, #DDDDDD 100%);
background-attachment: fixed;
}
h1 {
color: #ED1C24;
font-weight: 700;
font-size: 38px;
line-height: 110%;
letter-spacing: -0.02em;
margin-top: 60px;
}
h2 {
color: #222222;
font-weight: 400;
font-size: 16px;
line-height: 70%;
margin-top: -12px;
}
.color {
color: #ED1C24;
}
.subtext a {
text-decoration: none;
color: #FFFFFF;
}
/*Header*/
#mobilenav {
display: none;
}
.header {
width: 100%;
height: 75px;
position: fixed;
display: block;
top: 0px;
z-index: 1000;
background-color: #Fff;
-webkit-box-shadow: 0px 1px 5px 0px #9a9a9a;
-moz-box-shadow: 0px 1px 5px 0px #9a9a9a;
box-shadow: 0px 1px 5px 0px #9a9a9a;
}
.headwrap {
width: 1050px;
margin: auto;
margin-top: 13px;
min-width: 1100px;
}
.nav {
width: 750px;
float: right;
color: #000;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
margin-top: 8px;
margin-right: 20px;
display: inline-block;
}
.nav ul {
list-style: none;
float: right;
}
.nav li {
float: left;
padding-left: 20px;
}
.nav li a {
color: #000;
padding-left: 40px;
text-decoration: none;
}
.nav li a:hover {
text-decoration: underline;
}
.nav li a:visited {
}
/*Content*/
.pagewrap {
display: block;
width: 1100px;
margin: auto;
margin-top: 0px;
position: relative;
padding-bottom: 50px;
}
.content p {
color: #222222;
line-height: 140%;
font-weight: 300;
font-size: 24px;
margin-top: -18px;
font-family: 'Roboto', sans-serif;
}
.intro {
text-align: left;
width: 1050px;
margin: auto;
font-family: 'Oswald', sans-serif;
font-weight: 700;
}
.intro h1 {
font-size: 32px;
}
.intro p {
font-size: 20px;
}
.slider-wrapper {
padding-top: 150px;
}
section {
width: 650px;
margin-left: 50px;
}
.one {
margin-top: 150px;
}
section h1 {
padding-top: 75px;
font-size: 45px;
font-weight: 300;
}
hr {
width: 300px;
height: 1px;
background-color: #000;
border: none;
}
.one p, .two p {
font-size: 12px;
text-align: left;
vertical-align: top;
}
.two {
margin-top: -60px;
}
article {
padding-top: 15px;
font-size: 12px;
font-weight: 400;
margin: 30px;
width: 604px;
font-family: helvetica, sans-serif;
}
.panel {
width: 300px;
margin-top: 50px;
margin-left: 33px;
float: left;
height: 150px;
background-color: #fafafa;
border-bottom-width: 35px;
border-bottom-style: solid;
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
color: #000;
font-weight: normal;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
line-height: 150%;
letter-spacing: normal;
}
.panel h1 {
font-size: 14px;
color: #DD282E;
font-weight: bold;
padding-top: 0px;
margin-top: 0px;
line-height: 150%;
height: 21px;
}
.panel .text {
padding: 10px;
height: 104px;
}
.panel-wrapper {
height: 150px;
width: 966px;
margin: auto;
font-size: 1em;
}
.panel .subtext {
margin-top: 35px;
text-align: right;
padding-right: 10px;
color: #ffffff;
vertical-align: center;
font-size: 1em;
}
.button, .button2 {
float: right;
}
#controls {
float: right;
margin-top: -60px;
}
#slider {
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}
article h1 {
font-size: 26px;
color: #DD282E;
font-weight: bold;
padding-top: 0px;
margin-top: 0px;
line-height: 150%;
}
/*Sidebar*/
#sidebar {
width: 220px;
float: right;
margin-right: 88px;
margin-top: 150px;
color: #222222;
line-height: 140%;
font-weight: 400;
font-size: 14px;
font-family: 'Roboto', sans-serif;
}
#sidenav {
height: 100px;
width: 200px;
background-color: #FFFFFF;
padding: 10px;
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}
#sidenav li {
list-style: inside;
}
#links {
width: 200px;
margin-top: 30px;
background-color: #FFFFFF;
padding: 10px;
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}
#documents {
width: 200px;
margin-top: 30px;
background-color: #FFFFFF;
padding: 10px;
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}
#news {
width: 330px;
background-color: #FFFFFF;
padding: 10px;
margin: auto;
margin-top: 0px;
}
#news p {
margin-top: 0px;
}
#sidebar ul {
list-style: none;
margin-left: -25px;
}
#sidebar li {
font-size: 12px;
font-weight: 400;
text-align: left;
}
#sidebar a, #sidebar a:visited {
text-decoration: none;
color: #39F;
}
#sidebar a:hover, #sidbar a:active {
text-decoration: underline;
color: #36F;
}
/*Footer*/
.footwrap {
width: 100% !important;
height: 100px !important;
background-color: #444 !important;
}
.footer {
display: block !important;
width: 1100px !important;
margin: 30px auto !important;
height: 100px !important;
background-color: #444 !important;
position: relative !important;
bottom: 0px !important;
font: 14px arial !important;
color: #fff !important;
padding: 20px !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.comm {
width: 1050px !important;
margin: auto !important;
height: 100px !important;
font-size: 10px !important;
margin-top: 20px !important;
text-align: center !important;
}
.sn {
width: 120px !important;
float: right !important;
margin-top: -100px !important;
margin-right: 0px !important;
}
.fb {
margin-left: 10px !important;
float: left !important;
width: 20px !important;
height: 20px !important;
background: url(http://thewolv.es/Website/images/snIcons2.jpg) 0px 0px no-repeat !important;
}
.fb:hover {
width: 20px !important;
height: 20px !important;
background: url(http://thewolv.es/Website/images/snicons2.jpg) 0px -20px no-repeat !important;
}
.tw {
margin-left: 10px !important;
float: left !important;
width: 20px !important;
height: 20px !important;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -40px 0px no-repeat !important;
}
.tw:hover {
width: 20px !important;
height: 20px !important;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -40px -20px no-repeat !important;
}
.in {
margin-left: 10px !important;
float: left !important;
width: 20px !important;
height: 20px !important;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -20px 0px no-repeat !important;
}
.in:hover {
width: 20px !important;
height: 20px !important;
background: url(http://thewolv.es/Website/images/snicons2.jpg) -20px -20px no-repeat !important;
}
(Your website fully cloned in jsbin with the fully working sprites: http://jsbin.com/OTeMuX/1)
I dont think setting background image on hover helps.
Is the image accessible in the first place.
Can you check that by going the image URL.
If your page URL is http://your.domain/abc/def.html
Then the image should be at http://your.domain/abc/images/snicons2.jpg
I modified your code because I, like the rest of SO, didn't have the image to work with. But this works fine.
CSS
.footwrap {
width: 100%;
height: 100px;
background-color: #444;
}
.footer {
display: block;
width: 1100px;
margin: auto;
height: 100px;
background-color: #444;
position: relative;
bottom: 0px;
}
.comm {
width: 1050px;
margin: auto;
height: 100px;
font-size: 10px;
margin-top: 20px;
text-align: center;
}
.sn {
width: 120px;
float: right;
margin-top: 40px;
margin-right: 0px;
display: inline-block;
}
.fb {
width: 20px;
height: 20px;
display: inline-block;
}
.fb a {
display: block;
width: 20px;
height: 20px;
background-image: url(fbo.jpg);
background-position: 0px 0px;
}
.fb a:hover {
background-position: 0px 20px;
background-image: url(fbi.jpg);\\haha, fbi...
}
.tw {
width: 20px;
height: 20px;
display: inline-block;
padding-left: 10px;
}
.tw a {
display: block;
width: 20px;
height: 20px;
background-image: url(two.jpg);
background-position: 40px 0px;
}
.tw a:hover {
background-position: 40px 20px;
background-image: url(twi.jpg);
}
.in {
width: 20px;
height: 20px;
display: inline-block;
padding-left: 10px;
}
.in a {
display: block;
width: 20px;
height: 20px;
background-image: url(ino.jpg);
background-position: 20px 0px;
}
.in a:hover {
background-position: 20px 20px;
background-image: url(ini.jpg);
}
HTML
<body>
<div class="sn">
<div class="fb">
</div>
<div class="tw">
</div>
<div class="in">
</div>
</div>
</body>
EDIT I didn't explain why... You should act as though the anchors are what you are modifying and that the divs are just containers for those anchors. Your a:hover had just background positioning. Unless that's what you were going for. In that case, ignore me.

2 different css files one page, browser applying only style from one file

I'm trying to create a new page in which I apply my own CSS and use some of the components developed here: http://aozora.github.io/bootmetro/index.html.
Problem is that on one component the browser is only applying the style from my file and not the style defined on the .css file I downloaded from the site. Trouble is that firebug shows that the file is being tranfered to the user but somehow its not being used even if the class defined from tag is clearly defined on the other .css file.
Heres the source of the page:
<div class="header">
<div class="right textHeader">
<div class="left logo"><p class="title">Portal para la gestión y control<br>
de la implementación del sistema de información PAI
</p>
</div>
<div class="right textInfo">
<div class="left greetTime">
<img src="/Content/Images/calendar.png"> 27/04/2013 12:15:25 p.m.
</div>
<div class="greet">
Hola, <a class="username" href="/Account/Manage" title="Manage">administrador</a>!
<form action="/Account/LogOff" id="logoutForm" method="post"><input name="__RequestVerificationToken" value="gsGgnTHMhT55z7aQFmarrbLlUQK4x2nuMNZP_kXbqRx2j3kWOhNSc3RptPzG8118PGgkQOpU_erRuCcZ7GvH4FhKNAlaCug0dFUGKjiFqbP5wjhFTJConDCIZzZppq090" type="hidden"> Desconectarse
</form> </div>
</div>
</div>
<div class="left imgHeader">
<img src="/Content/Images/logo-minSalud.png">
<img src="/Content/Images/logo-prosperidad.png">
</div>
</div>
<div id="categories">
Inicio
</div>
<div id="content">
<h2>Bienvenido</h2>
This is the item I want to apply the class to
Administrar banco de información**Administrar usuariosReportes gerenciales
</div>
Here's the firebug screenshot:
And here's the screenshot showing that both files are being downloaded:
Here's my css file:
body {
color: #353535;
background-color: #fff;
background: url("Images/bg.jpg") repeat-x 0 0 #EBEBEB;
font-size: 1em;
margin: 0;
padding: 0;
font-family: 'Maven Pro', sans-serif;
}
header, footer, nav, section
{
display: block;
}
.editButton {
background:url(Images/editarPequeño.ico);
background-repeat: no-repeat;
display: block;
text-indent: -9999px; /* hides the link text */
}
.deleteButton {
background:url(Images/deletePequeno.ico);
background-repeat: no-repeat;
display: block;
text-indent: -9999px; /* hides the link text */
}
.left
{
float:left
}
.right {
float: right;
}
.navBar {
background-color: #F7921E;
height: 48px;
}
/*//////////TABLA LISTADO /////////////////////////*/
table {
color: #333;
/*font-family: Helvetica, Arial, sans-serif;*/
/*width: 640px;*/
border-collapse:
collapse; border-spacing: 0;
margin-left:auto;
margin-right:auto;
}
td, th {
border: 1px solid transparent; /* No more visible border */
height: 30px;
transition: all 0.3s; /* Simple transition for hover effect */
}
th {
background: #5DBCD2; /* Darken header a bit */
font-weight: bold;
border: 1px solid #CCC;
}
td {
background: #FAFAFA;
text-align: center;
}
/* Cells in even rows (2,4,6...) are one color */
tr:nth-child(even) td { background: #F1F1F1; }
/* Cells in odd rows (1,3,5...) are another (excludes header cells) */
tr:nth-child(odd) td { background: #FEFEFE; }
tr td:hover { background: #666; color: #FFF; } /* Hover cell effect! */
/*///////////////////////////////*/
.title {
/*font-family: 'Montserrat', sans-serif;*/
/*width: 500px;*/
font-weight: bold;
}
.greet {
font-size: 0.78em;
}
.textInfo {
width:50%;
/*height:100%;*/
}
/*///////////////////////////////////////*/
.listView {
margin-left: 0px;
list-style: none outside none;
}
ul{
display: block;
list-style-type: disc;
-webkit-margin-before: 1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
-webkit-padding-start: 40px;
}
.metrouicss .listview:before, .metrouicss .listview:after {
display: table;
content: "";
}
/*///////////////////////////////////////*/
.okButton {
background: -moz-linear-gradient(center top , #ff6600 0px, #ff6600 100%) repeat scroll 0 0 transparent;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 5px 5px 5px 5px;
color: #FFFFFF;
opacity: 0.75;
padding: 6px 10px;
margin-top:5px;
display:block;
margin:0px auto;
}
.okButton {
transition: opacity 0.2s ease 0s;
}
.footer {
width: 100%;
height: 100px;
background: none repeat scroll 0% 0% rgb(138, 188, 203);
margin-top:50px;
color: rgb(0, 0, 0);
font-size: 0.7em;
border-top: 1px solid rgb(98, 143, 156);
}
.logo {
width:50%
}
.textHeader {
width:63%
}
.greetTime {
font-size: 0.58em;
/*width: 15px;*/
}
.header {
height: 122px;
width: auto;
margin-top:20px;
/*margin-left:5%;*/
/*margin: 0px auto;*/
}
/* Styles for basic forms
-----------------------------------------------------------*/
fieldset {
border: 1px solid #ddd;
padding: 0 1.4em 1.4em 1.4em;
margin: 0 0 1.5em 0;
}
legend {
font-size: 1.2em;
font-weight: bold;
color:black
}
textarea {
min-height: 75px;
}
.editor-label {
margin: 1em 0 0 0;
}
.editor-field {
margin: 0.5em 0 0 0;
}
/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
color: #f00;
}
.field-validation-valid {
display: none;
}
.input-validation-error {
border: 1px solid #f00;
background-color: #fee;
}
.validation-summary-errors {
font-weight: bold;
color: #f00;
}
.validation-summary-valid {
display: none;
}
/*CSS Aditions*/
BODY { font-size: 1em; margin: 0; }
DIV#header DIV.title, DIV.item H3, DIV.item H4, DIV.pager A
{
/*font: bold 1em "Arial Narrow", "Franklin Gothic Medium", Arial;*/
}
A#loginLink {
font-size:1.5em;
}
/*DIV#header { background-color: #5DBCD2; border-bottom: 2px solid #111; color: black; }*/
DIV#header DIV.title { font-size: 2em; padding: .6em; }
DIV#title { font-size: 2em; padding: .6em;float:right }
DIV#headerImages { float:left}
/*DIV#content { border-left: 2px solid gray; margin-left: 9em; padding: 1em; }*/
DIV#categories { float: left; width: 8em; padding: .3em; }
DIV.item { border-top: 1px dotted gray; padding-top: .7em; margin-bottom: .7em; }
DIV.item:first-child { border-top:none; padding-top: 0; }
DIV.item H3 { font-size: 1.3em; margin: 0 0 .25em 0; }
DIV.item H4 { font-size: 1.1em; margin:.4em 0 0 0; }
DIV.pager { text-align:right; border-top: 2px solid silver;
padding: .5em 0 0 0; margin-top: 1em; }
DIV.pager A { font-size: 1.1em; color: #666; text-decoration: none;
padding: 0 .4em 0 .4em; }
DIV.pager A:hover { background-color: Silver; }
DIV.pager A.selected { background-color: #353535; color: White; }
DIV#categories A
{
font: bold 1.1em "Arial Narrow","Franklin Gothic Medium",Arial; display: block;
text-decoration: none; padding: .6em; color: Black;
border-bottom: 1px solid silver;
}
DIV#categories A.selected { background-color: #666; color: White; }
DIV#categories A:hover { background-color: #CCC; }
DIV#categories A.selected:hover { background-color: #666; }
And heres the css file i downloaded
/* Metro Tiles
-------------------------------------------------- */
.bg-color-blue {
background-color: #0072BC !important;
}
.bg-color-blueDark {
background-color: #662D91 !important;
}
.bg-color-green {
background-color: #01a31c !important;
}
.bg-color-greenDark {
background-color: #008641 !important;
}
.bg-color-red {
background-color: #bc1c48 !important;
}
.bg-color-yellow {
background-color: #ffc40d !important;
}
.bg-color-orange {
background-color: #CD4900 !important;
}
.bg-color-pink {
background-color: #c3325f !important;
}
.bg-color-purple {
background-color: #603cba !important;
}
.bg-color-darken {
background-color: #1c1c1c !important;
}
.metro {
overflow: hidden;
}
.metro .carousel-control {
top: 20%;
}
.metro .metro-sections {
height: auto;
position: relative;
overflow: hidden;
width: 10000px;
}
.metro-sections h2 {
margin-left: 5px;
font-family: "Open Sans",Arial,Helvetica,Sans-Serif;
font-weight: 300;
text-transform: lowercase;
}
.metro .metro-sections .metro-section {
position: relative;
float: left;
/*width: 810px !important;*/
width: auto;
height: auto;
margin-right: 75px;
}
/* fixed widths for tile sections
units are measured per square tile width, i.e.: tile-span-1 = 160px = 1 square tile width (including margin)
*/
.metro .metro-sections .metro-section.tile-span-1 { width: 160px; margin-left: 0;}
.metro .metro-sections .metro-section.tile-span-2 { width: 320px; margin-left: 0;}
.metro .metro-sections .metro-section.tile-span-3 { width: 480px; margin-left: 0;}
.metro .metro-sections .metro-section.tile-span-4 { width: 640px; margin-left: 0;}
.metro .metro-sections .metro-section.tile-span-5 { width: 640px; margin-left: 0;}
.metro .metro-sections .metro-section.tile-span-6 { width: 800px; margin-left: 0;}
.metro .metro-sections .metro-section.tile-span-7 { width: 960px; margin-left: 0;}
.metro .metro-sections .metro-section.tile-span-8 { width: 1120px; margin-left: 0;}
/*default tile definition */
.metro .tile {
position: relative;
display: block;
float: left;
margin: 5px;
padding: 0;
/*padding-bottom: 1px;*/
width: 150px;
height: 150px;
color: #FFF;
cursor: pointer;
overflow: hidden;
text-decoration: none;
background-color: #2C83EF;
}
.metro .tile:hover {
outline: 3px #225a68 solid;
}
.scroll {
-webkit-transition:left 0.6s ease; /* here the animation is set on 5 seconds */
-moz-transition:left 0.6s ease;
-o-transition:left 0.6s ease;
transition:left 0.6s ease;
}
/* Metro Tiles Templates
-------------------------------------------------- */
.metro .tile.square.text {
width: 110px;
height: 110px;
padding: 20px;
}
.metro .tile.square.image {
width: 150px;
height: 150px;
padding: 0;
}
.metro .tile.square.image img {
max-width: 150px;
max-height: 150px;
}
.metro .tile.squarepeek {
width: 150px;
height: 300px;
}
.metro .tile.squarepeek .text-inner {
width: 110px;
height: 110px;
padding: 20px;
}
.metro .tile.wide.text {
width: 270px;
height: 110px;
padding: 20px;
}
.metro .tile.wide.image {
width: 310px;
height: 150px;
}
.metro .tile.wide.image.collection img {
max-width: 158px;
max-height: 150px;
float: left;
}
/* template for full image */
.metro .tile.wide.imagetext.wideimage {
width: 310px;
height: 150px;
padding: 0;
}
/* template with normal 80x80 image */
.metro .tile.wide.imagetext {
width: 270px;
height: 110px;
padding: 20px;
}
.metro .tile.wide.imagetext .textover-wrapper {
position: absolute;
bottom: 0;
width: 270px;
height: 48px;
padding: 2px 20px;
background-color: inherit;
}
.metro .tile.widepeek {
width: 310px;
height: 300px;
}
/* Default Tile
-------------------------------------------------- */
.metro .tile.app .image-wrapper {
display: block;
width: 150px;
height: 80px;
margin-top: 20px;
padding: 8px 0;
text-align: center;
vertical-align: middle;
}
.metro .tile.app .image-wrapper img {
max-width: 80px;
max-height: 80px;
margin: 0 auto;
}
.metro .tile .app-label {
bottom: 5px;
font-size: 12px;
left: 20px;
position: absolute;
}
.metro .tile .app-count {
position: absolute;
right: 20px;
bottom: 10px;
font-size: 14px;
font-weight: bold;
}
.metro .tile.wide.app {
width: 310px;
height: 150px;
}
.metro .tile.wide.app .image-wrapper {
width: 310px;
}
.image-wrapper span.icon {
font-size: 80px;
height: 80px;
line-height: 80px;
width: 80px;
}
/*
-------------------------------------------------- */
.metro .tile.square.text .text-big {
font-size: 76px;
line-height: 76px;
text-align: left;
overflow: hidden;
}
.metro .tile.square.text.tilesquareblock .text {
font-size: 14px;
font-weight: bold;
text-align: left;
overflow: hidden;
}
/* normal header in 1 line of wrapped text*/
.metro .tile .text-header {
font-family: "Open Sans",Arial,Helvetica,Sans-Serif;
font-weight: 300;
font-size: 34px;
line-height: 36px;
max-height: 36px;
text-align: left;
overflow: hidden;
}
/* One string of large text wrapped over a maximum of three lines.*/
.metro .tile .text-header3 {
font-family: "Open Sans",Arial,Helvetica,Sans-Serif;
font-weight: 300;
font-size: 34px;
line-height: 36px;
text-align: left;
max-height: 110px;
overflow: hidden;
}
/* 1 line of regular text (not wrapped) */
.metro .tile .text {
font-size: 15px;
line-height: 18px;
height: 18px;
font-weight: normal;
text-align: left;
overflow: hidden;
}
/* regular text wrapped over a maximum of 2 lines */
.metro .tile .text2 {
font-size: 15px;
font-weight: normal;
line-height: 20px;
max-height: 44px;
overflow: hidden;
text-align: left;
}
/* regular text wrapped over a maximum of 3 lines */
.metro .tile .text3 {
font-size: 15px;
line-height: 18px;
font-weight: normal;
text-align: left;
max-height: 56px;
overflow: hidden;
}
/* regular text wrapped over a maximum of 4 lines */
.metro .tile .text4 {
font-size: 15px;
line-height: 18px;
font-weight: normal;
text-align: left;
max-height: 72px;
overflow: hidden;
}
/* regular text wrapped over a maximum of 5 lines */
.metro .tile .text5 {
font-size: 15px;
line-height: 18px;
font-weight: normal;
text-align: left;
max-height: 92px;
overflow: hidden;
}
/* Image Only Tiles
-------------------------------------------------- */
.metro .tile.square.image img {
max-width: 150px;
max-height: 150px;
}
/* Wide Text Only Tiles
-------------------------------------------------- */
.metro .tile .column {
display: block;
float: left;
width: 130px;
}
.metro .tile .column2-label {
display: block;
float: left;
width: 90px;
}
.metro .tile .column2-text {
display: block;
float: left;
width: 160px;
}
.metro .tile .column3-label {
display: block;
float: left;
width: 50px;
}
.metro .tile .column3-text {
display: block;
float: left;
width: 200px;
}
/* Wide Image Only Tiles
-------------------------------------------------- */
.metro .tile.wide.image .mini-tiles {
display: inline-block;
float: left;
width: 152px;
height: 150px;
}
.metro .tile.wide.image .mini-tiles img {
display: inline-block;
float: left;
max-width: 75px;
max-height: 75px;
border-left: 1px solid #2A2A2A;
}
/* Wide Image & Text Tiles
-------------------------------------------------- */
.metro .tile.wide.imagetext .column-text,
.metro .tile.wide.text .column-text {
display: block;
float: left;
width: 180px;
padding-left: 10px;
}
.metro .tile.wide.text .column-text-big {
display: block;
float: left;
width: 80px;
}
.metro .tile.wide.imagetext .image-wrapper {
display: block;
float: left;
width: 80px;
height: 80px;
}
.metro .tile.wide.imagetext .image-wrapper img {
max-width: 80px;
max-height: 80px;
}
/* ListView
-------------------------------------------------- */
.listview-container.grid-layout {
border: solid 2px rgba(0, 0, 0, 0.13);
height: 240px;
overflow: auto;
padding: 2px;
background-color: #FFF;
}
.mediumListIconTextItem {
display: inline-block;
position: relative;
vertical-align: top;;
width: 282px;
height: 70px;
padding: 5px;
margin-bottom: 7px;
margin-right: 24px;
border: solid 3px transparent;
overflow: hidden;
background-color: #FFF;
cursor: pointer;
}
.mediumListIconTextItem:hover {
border: solid 3px #b3b3b3;
background-color: #b3b3b3;
}
.mediumListIconTextItem img.mediumListIconTextItem-Image {
display: inline-block;
vertical-align: top;;
width: 60px;
height: 60px;
margin: 5px;
}
.mediumListIconTextItem .mediumListIconTextItem-Image[class^="icon-"],
.mediumListIconTextItem .mediumListIconTextItem-Image[class*=" icon-"] {
display: inline-block;
width: 60px;
height: 60px;
font-size: 60px;
line-height: 60px;
margin: 5px;
}
.mediumListIconTextItem .mediumListIconTextItem-Detail {
display: inline-block;
vertical-align: top;;
margin: 5px;
}
.mediumListIconTextItem.selected {
background-color: #4617b4;
}
.mediumListIconTextItem.selected:after {
position: absolute;
top: 5px;
right: 5px;
width: 16px;
height: 16px;
font-family: 'IcoMoon';
content: "\e03c";
color: #FFF;
font-size: 16px;
}
.mediumListIconTextItem.selected:hover {
border: solid 3px #b3b3b3;
background-color: #4617b4;
}
.mediumListIconTextItem.selected .mediumListIconTextItem-Detail,
.mediumListIconTextItem.selected .mediumListIconTextItem-Detail h4,
.mediumListIconTextItem.selected .mediumListIconTextItem-Detail h6 {
color: #FFF;
}
/* Special undocumented tiles for ads
-------------------------------------------------- */
#ad-container {
background-color: #0072BC;
height: 90px;
margin-top: 10px;
text-align: center;
width: 100%;
}
/*Button (125x125)*/
.metro .tile.ad.ad125 {
width: 125px;
height: 125px;
padding: 12px 13px 13px 12px;
}
/*Small Rectangle (180x150)*/
.metro .tile.wide.ad.ad125 {
width: 180px;
height: 150px;
padding: 0 65px;
}
All the rules from the downloaded file that affect the .tile class start like this .metro .tile which means that the .tile element must be a descendant of a .metro element (an element with class metro)
You html does not show your link being inside a .metro element so the styles do not apply ..
it seems that stylesheets are loaded, but from basic look at the Metro Tiles CSS I decided that you forgot to put metro class to any parent of your tile, for example add class to your content
<div id="content" class="metro">