Blue border in IE wont go away - css

I have some pictures with links, and in IE, there is a blue border around them, I have tried everything I have found, this link as well. how to remove blue border around links in IE9?
For some reason I cannot get it to go away.
Thanks in advance for the help.
Its the div.logo one I am trying to fix
body {background-image:url('../images/space1.jpg');
background-repeat: no-repeat center center;
background-position: center;
background-size: cover;
width: 100%;
min-height: 100%;
}
body {color:white;}
a, a:visited {
color:#3399FF; text-decoration:none;}
div.header{
text-align:right;
font-size:200%;
}
div.header1 {
text-align:right;
font-size:125%;
}
div.logo{
margin-top:-40px;
a border:none;
img
text-decoration: none;
border: 0px;
border-style:none;
}
#nav{
width:85%;
height:3%;
font-size: 26px;
font-weight: bold;
border-radius: 8px;
text-align: center;
margin: 0 auto;
position:absolute;
top:100px;
left:120px;
}
#nav ul {
height: auto;
padding: 0px 0px;
margin: 0px;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
display: inline-block;
}
#nav li {
display: inline-block;
padding: 20px;
margin-left: auto;
margin-right: auto;
}
#nav a {
text-decoration: none;
color: #3399FF;
padding: 8px 8px 8px 8px;
}
#nav a:hover {
color: #000000;
background-color:#3399FF;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
div.qui {
text-align:center;
font-size:200%;
text-decoration:underline;
}
div.specs {
text-align:center;
font-size:175%;
}
ul.qui {
text-align:center;
font-size:150%;
list-style-type: none;
}
.images {
overflow: hidden;
}
.images img {
float: left;
margin: 0px;
}
div.glams {
text-align: center;
}
.left {
float: left;
margin-left:20%;
padding:10px;
border:3px solid #585858 ;
}
.right {
float: right;
margin-right:20%;
padding:10px;
border:3px solid #585858 ;
}
p.v {
text-align:center;
}
#media only screen and (min-width: 768px) and (max-width: 770px)
and (orientation : portrait) {
div.header{
text-align:right;
font-size:140%;
}
div.header1 {
text-align:right;
font-size:100%;
}
div.logo{
margin-top:-40px;
}
div.logo
img {
height:100px;
width:200px;
}
#nav{
width:100%;
height:3%;
font-size: 100%;
font-weight: bold;
border-radius: 8px;
margin:0;
padding:0;
text-align: center;
margin-top:5%;
margin-left:-14%;
}
#nav ul {
height: auto;
padding: 0px 0px;
margin: 0;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
display: inline-block;
}
#nav li {
display: inline
padding: 5px;
margin-left: auto;
margin-right: auto;
}
#nav a {
text-decoration: none;
color:#3399FF;
padding: 8px 8px 8px 8px;
display: inline-block;
}
#nav a:hover {
color: #000000;
background-color: #FFF;
}
li:hover ul {
display: block;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
div.qui {
text-align:center;
font-size:200%;
text-decoration:underline;
margin-top:15%;
}
div.specs {
text-align:center;
font-size:175%;
}
ul.qui {
text-align:center;
font-size:150%;
list-style-type: none;
}
.images {
overflow: hidden;
}
.images img {
float: left;
margin: 0px;
}
div.one {
text-align: center;
}
.left {
float: left;
margin-left:3%;
padding:0px;
border:3px solid #585858 ;
}
.right {
float: right;
margin-right:3%;
padding:0px;
border:3px solid #585858 ;
}
p.v {
text-align:center;
}
div.glams
img {
height:180px;
width: 300px;
}
#media only screen
and (min-device-height : 768px)
and (min-device-width : 1024px)
and (orientation : landscape) {
body { background: green; }
div.header{
text-align:right;
font-size:140%;
}
div.header1 {
text-align:right;
font-size:100%;
}
div.logo{
margin-top:-40px;
}
div.logo
img {
height:80px;
width:150px;
}
#nav{
width:100%;
height:3%;
font-size: 100%;
font-weight: bold;
border-radius: 8px;
margin:0;
padding:0;
text-align: center;
margin-top:5%;
margin-left:-14%;
}
#nav ul {
height: auto;
padding: 0px 0px;
margin: 0;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
display: inline-block;
}
#nav li {
display: inline
padding: 5px;
margin-left: auto;
margin-right: auto;
}
#nav a {
text-decoration: none;
color:#3399FF;
padding: 8px 8px 8px 8px;
display: inline-block;
}
#nav a:hover {
color: #000000;
background-color: #FFF;
}
li:hover ul {
display: block;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
div.qui {
text-align:center;
font-size:200%;
text-decoration:underline;
margin-top:15%;
}
div.specs {
text-align:center;
font-size:175%;
}
ul.qui {
text-align:center;
font-size:150%;
list-style-type: none;
}
.images {
overflow: hidden;
}
.images img {
float: left;
margin: 0px;
}
div.one {
text-align: center;
}
.left {
float: left;
margin-left:3%;
padding:0px;
border:3px solid #585858 ;
}
.right {
float: right;
margin-right:3%;
padding:0px;
border:3px solid #585858 ;
}
p.v {
text-align:center;
}
div.glams
img {
height:180px;
width: 300px;
}
}

To make them go away use this:
a > img {
border: 0;
}
This means the image just inside the link should have no border. I had the same issue and its fixed! :) Try it.

a, div {
outline: none;
border: none;
}
outline means the blue border.

Related

Blogger css stylesheet doesn't work unless called using an external url

Recently, I made a blog on blogger but I found a problem with the Css stylesheet.
when I put this Css stylesheet inside b:skin tag:
#import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:400);
#import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:700);
a img {border: none;}
a, a:visited{ color:#1E6FE0; text-decoration:underline; }
a:hover{ color:#FC7F01; text-decoration:underline; }
/****** header area *******/
.header_container {background:transparent !important;}
.header_nav { float:left; list-style-type:none; width:744px; height:31px; margin:36px 0 0 0; padding:0; background-image:url('http://www.example.com/short_navbar.png'); background-repeat:no-repeat !important;}
.header_nav div { margin:0 5px 0 5px; }
.header_nav li { float:left; }
.header_nav a { display:block; color:white; text-decoration:none; font-size:12px; line-height:30px; padding:0 7px 0 7px; font-weight:bold; text-shadow:0 2px 2px rgba(0, 0, 0, 0.3); font-family:Arial,Verdana,Helvetica,sans-serif;}
.header_nav_seleced, .header_nav a:hover { background-image:url('http://www.example.com/ttr-sprites.png'); background-repeat:repeat-x !important; padding-bottom:11px; background-position:0 -25px; }
.header_nav li { position:relative; }
.header_nav li ul { display:none; position:absolute; top:30px; left:0; padding:0; }
.header_nav li ul li { list-style:none; }
.header_nav li ul a { display:block; text-decoration:none; width:78px; background:#b95806; border-bottom:1px solid black; }
.header_nav li ul a:hover { display:block; text-decoration:none; background:#e8b866; background-image:none; min-width:56px; padding:0 7px 0 7px; }
.header_nav li:hover ul { display:block; }
.header_search_form { top:3px; left:-270px; }
.header_search_form_js { position:absolute; left: -272px; display:none; }
.header_search_form .search_bar { background-image:none; background-color:#fff; border: 1px solid #333; color:#333; font-size:12px; width: 308px; height:17px; padding:4px; -moz-border-radius: 3px; border-radius: 3px; }
.header_search_form #q { margin:0; }
.header_mousetrack { color:white; font-size:11px; font-weight:bold; margin:7px 0 11px 14px; float:left; }
.header_mousetrack a, .header_mousetrack a:visited { color:white; }
.new_portal_footer a, .new_portal_footer:visited, .new_portal_footer a:hover
.header_mousetrack a:hover { color:white; text-decoration:none; }
.header_top_ad { margin:0 0 0 0; }
.header_logo { float:left; margin:0 0 0 5px; _margin:0 0 0 0; }
.top_container {background: transparent !important; width: 988px !important; }
.header_nav_bar {display:inline;}
.ad5_container { background-image:url('http://www.example.com/black_border-2.png'); background-repeat:no-repeat !important; padding: 15px 0 0 15px; margin: 0 0 -30px -15px; height:330px; width:330px; _height:300px; _width:300px; _background:none;}
/* New header 2013 */
.hdr_top_left { width: 254px; padding-top: 18px; float: left; text-align: left; }
.hdr_nav_bar { position: relative; }
.hdr_nav_selected, .hdr_nav a:hover { background: #338CD8; }
.hdr_mag_outer { display: inline-block; margin-top: 4px; }
.hdr_search_form { position: absolute; top: 60px; right: 10px; display: none; .margin-top: -55px; }
.hdr_search_bar { border-radius: 8px; float: left; height: 24px; margin-top: 5px; width: 320px; background: transparent url(http://www.example.com/ttr_new_search_2.jpg) no-repeat scroll 0 0; }
.hdr_search_bar input { border: none; margin: 3px 5px 0; width: 305px; }
.hdr_search_bar input:focus { outline-width: 0; }
.hdr_top_ad { margin-top: 20px; }
.hdr_nav_outer { display: table; border: 0; margin: 18px 0 0 12px; min-width: 718px; background-color: #282828; float: left; }
.hdr_nav { display: table-row; overflow: hidden; margin: 0; padding: 0; min-width: 718px; list-style-type: none; }
.hdr_nav li.hdr_search_box { line-height: 1; vertical-align: top; }
.hdr_nav .hdr_search_box a { padding-top: 9px; padding-bottom: 16px; }
.hdr_nav li:hover { background: #338CD8; }
.hdr_nav li { line-height: 42px; display: table-cell; border: 0; margin: 0; padding: 0; vertical-align: middle; text-align: center; .float: left; }
.hdr_nav li, .hdr_nav2 li a { padding-bottom: 0; }
.hdr_nav li a, .hdr_nav li2 a:visited { padding: 0 7px; white-space: nowrap; color: white; display: inline-block; font-weight: normal; text-decoration: none; font-family: 'Roboto Condensed', arial, helvetica, sans-serif; font-size: 15px; text-shadow: none; .padding: 0 10px; }
.hdr_nav .hdr_search_box img { display: inline-block; width: 15px; height: 15px; margin-top: 4px; background: transparent url(http://www.example.com/mag-glass-dark.gif) no-repeat scroll center 0; }
.sprite{ width:170px;height:56px; background:url(http://www.example.com/ttr-sprites.png);}
.checkmark{width:17px;height:12px;background-position:0 0; margin-left:auto;margin-right:auto;}
.star_full_blue{ width:13px;height:14px; background-position:-18px 0px; float:left;}
.star_half_blue{ width:13px;height:14px; background-position:-31px 0px; float:left;}
.star_empty_blue{ width:13px;height:14px; background-position:-45px 0px; float:left;}
.star_full_gold{ width:13px;height:14px; background-position:-60px 0px; float:left;}
.star_half_gold{ width:13px;height:14px; background-position:-74px 0px; float:left;}
.star_empty_gold{ width:13px;height:14px; background-position:-87px 0px; float:left;}
.magnify_glass{ width:16px;height:18px; background-position:-101px 0px;}
.mailing_list_submit_button{width:60px;height:25px;background-position:-117px 0px;}
.tan_bar{width:32px;height:32px; background-position:-114px 32px;}
.right_ad_scroller {width: 300px; margin: 10px;}
/****** footer area *******/
.footer{ width:917px; float:left; padding:30px 30px 30px 30px; background-color:#000; color:#ccc; margin:0 0 0 2px; overflow:hidden;}
.footer a.footer-links{ text-align:left; display:block; float:left; width:160px; color:#ccc; text-decoration:none; line-height:30px; font-weight:100; border-top-style:solid; border-top-color:#474747; border-top-width:thin; }
.footer a.footer-links:hover{ color:#fff; }
.footer-headers{ font-size:20px; display:block; float:left; color:#fff; text-decoration:none; line-height:50px; font-weight:lighter; letter-spacing:0.05em; }
.footer-lcolumn{ font-size:14px; letter-spacing:0px; width:160px; margin:0 30px 0 0; float:left; }
.footer-rcolumn{ font-size:14px; letter-spacing:0px; width:300px; float:right; }
.footer-bar{ display:block; width:300px; .width:303px; margin:0 0 20px 0; float:right; font-size:12px; }
.footer .newsletter-input{ display:block; font-size:16px; color:#999; width:212px; height:28px; line-height:18px; float:left; padding:0 5px 0 5px; margin:0 2px 0 0; border:none; }
.footer a.footer-button:hover{ opacity:0.9; }
.footer-button:hover{ opacity:0.9; }
footer { clear:both; text-align: center; }
.new_portal_footer ul {
list-style-type: none;
margin-bottom: 10px;
margin-top: 10px;
padding-left: 0px;
font-size: 8px;
}
.new_portal_footer {
background-color: white;
color: white;
font-size: 10px;
}
.popcontentrow {
width: 100%;
clear: both;
float: left;
background-color: #FFFFFF;
}
#popcontent {
position: absolute;
border: 0px;
display: none;
background-color: #FFFFFF;
z-index: 501;
}
.new_portal_footer img { margin-top:0 !important; }
.site-tools { margin:35px auto 40px; padding:10px 0; width:68%; text-align:center; border-top:2px solid #ccc; border-bottom:2px solid #ccc; clear:both; }
.site-tools a { margin:0 15px; padding:0; position:relative; width:80px; height:75px; overflow: hidden; display: inline-block; opacity:1; -webkit-transition: opacity 0.3s ease-in-out; -moz-transition: opacity 0.3s ease-in-out; -o-transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out; }
.site-tools a:hover { opacity:.6; }
.site-tools img { position: relative; }
.site-tools img.newsletter { }
.site-tools img.staff-index { top:-72px; }
.site-tools img.mobile { top:-152px; }
.site-tools img.contact-us { top:-222px; }
.site-index { color:#fff; background:#000; .display:block !important; }
.footer-wrap { margin:0 auto; padding:70px 0; width:974px; text-align: left; background:#000; }
.footer-toggle { clear: both; background:#fff; text-align: center; border-bottom:1px solid #000; line-height:20px; }
.footer-toggle span { padding:8px 39px 4px 34px; background:#000 url('http://www.example.com/sprite-footer-icons.gif') no-repeat -190px 13px; font-size:1.6em; cursor:pointer; }
.links { margin:0 15px 0 15px; float:left; width:165px; }
.links li { font-size:1.6em; line-height:36px; border-top:1px solid #333; }
.links li a:hover { text-decoration: underline; }
.links li.title, .nl-signup .title { margin-bottom:20px; position:relative; border-top:none; height:28px; width:188px; overflow: hidden; line-height:48px; }
.nl-signup .title { width:224px; }
li.title img, img.join { position:relative; }
li.title img.company { top:0; }
li.title img.network { top :-42px; }
li.title img.footer-categories { top: -82px; }
li.title img.follow-us { top: -122px;}
.title img.join { top: -166px; }
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.footer-tools { margin:10px 0 0 70px; float:left; width:318px; }
.footer-tools .links { margin:0 0 60px; width:318px; }
.footer-tools .links li { border-top:none; float:left; }
.footer-tools .links li.title { float:none; }
.footer-tools li a.rss, .footer-tools li a.fbook, .footer-tools li a.gplus, .footer-tools li a.twitter, .footer-tools li a.youtube { margin-right:20px; width:43px; height:40px; position:relative; overflow:hidden; float:left; }
.footer-tools li a.youtube { margin-right:none; }
.footer-tools li a img { position: relative; top:-207px; opacity:1; -webkit-transition: opacity 0.3s ease-in-out; -moz-transition: opacity 0.3s ease-in-out; -o-transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out; }
.footer-tools li a:hover img { opacity: .6; }
.footer-tools a.rss img { left:0; }
.footer-tools a.fbook img { left:-65px; }
.footer-tools a.gplus img { left:-135px; }
.footer-tools a.twitter img { left:-197px; }
.footer-tools a.youtube img { left:-264px; }
/******** body area **********/
body { background-image: url('http://www.example.com/black-to-gray-bg.png'); background-position: left top; background-repeat: repeat-x; background-color: #737573 !important; margin: 0;}
.main_page_left, .main_page_right {display:none;}
.main_page_left {background-color:transparent; background-image:none !important;}
.main_page_right {background-color:transparent; background-image:none !important;}
.portal_body {width: 1000px; margin: auto; font-family: Arial, Verdana, Helvetica, sans-serif;}
/*.sponsored_ads {display:none;}*/
.t1_nav_bar { background-image: url('http://www.example.com/matrix-header.gif') !important; background-position: 8px top; background-repeat: no-repeat; background-color: transparent; height: 48px; color: white; text-shadow: rgba(0, 0, 0, 0.3) 0 2px 2px; padding: 0 10px !important; width: 981px; }
.bottom_next_page_cont { width: 953px !important; margin-left: 9px; display: inline; }
.middle_page_inner_container { width: 953px !important; margin-left: 9px; display: inline; background-color: white; }
td.t1_left_cell_10 { width: 152px !important; }
.rank_row_last_col { }
.new_review_header { width: 937px !important; }
.ttr_top_left { width:240px; padding-left: 0px !important; padding-right: 0px !important;}
#contents { position:absolute; width:auto; top:600px; left:200px; }
/* right nav */
#ad_4 { float:none; text-align:center; padding:0; margin:0; }
#ad_5 { padding:0; margin:0; border:none; }
.top_ten_products { width:300px; min-height:85px; overflow:hidden; border:1px solid #CCC; }
.top_ten_products_header { background-image:url('http://www.example.com/top_ten_grad.png'); width:300px; height:37px; border-bottom:1px solid #CCC; }
.top_ten_products_header_title { float:left; font-size:18px; margin:6px 0 0 9px; }
.top_ten_products_header_all { float:right; margin:11px 14px 0 0; }
.top_ten_products_body { width:300px; max-height:212px; overflow:auto; }
.top_ten_products_row { float:left; border-bottom:1px solid #CCC; width:275px; padding:2px 0 2px 0;}
.top_ten_products_img { float:left; width:43px; height:36px; margin:0 5px 0 5px; text-align:center; }
.top_ten_products_img img { max-width:43px; max-height:34px; margin:1px 0 1px 0; }
.top_ten_products_rank { float:left; font-size:13px; margin: 12px 5px 0 0; }
.top_ten_products_name { float:left; font-size:12px; margin:13px 0 0 3px; width:200px;}
my blogger page becomes messy. but when I leave the b:skin empty and call the css stylesheet using an external url:
<link rel="stylesheet" type="text/css" href="http://www.example.com/stylesheet.css" media="all" />
The page is organized and works elegantly on Chrome .. messy a bit on firefox.
Please, tell me what wrong with the css code that I use.

CSS href text link jumps to a new line when clicked

My navigation bar works perfectly fine, any image links work fine, but all text links on my page jump down when I click on them. Most of them jump so far you cannot actually click it.
I also noticed my a:visited links are inheriting the color #000 from somewhere, when they should be #616161. There is no issue when browsing on my Android device, but happens in IE11 and Chrome32.
The HTML is nothing special. Just
Page Name
type links. It has to be something with the CSS.
The CSS:
body {
background-color: #7296d9;
max-width:1000px;
}
#wrapper {
width:auto;
background:url(../images/bg.jpg);
background-repeat:repeat;
margin:4px;
}
#content {
width:98%;
text-align:center;
margin:auto;
}
#paragraph {
width:80%;
font-size:18px;
color: #666;
font-weight:100;
text-align:justify;
margin:10px auto 25px auto;
}
.reviews {
width:80%;
margin:auto;
text-align:justify;
color: #666;
}
p {
margin:10px 0 10px 0;
}
h1 {
line-height:48px;
font-size:36px;
font-weight:bold;
text-align:center;
margin-top:10px;
}
h2 {
line-height:42px;
font-size:24px;
font-weight:bold;
text-align:center;
}
a:link, a:visited {
color: #616161;
text-decoration: underline;
}
a:hover, a:active {
color: #ffffff;
text-decoration: underline;
}
#header {
height:86px;
max-height:86px;
width:98%;
min-width:500px;
position:relative;
background-image:url(../images/logo.png);
background-repeat:no-repeat;
}
#header .left {
float:left;
height:auto;
}
#header .media-header {
float:right;
margin-top:50px;
margin-right:-20px;
}
#menu ul li:hover > ul {
display: block;
}
#menu {
display:table;
width:100%;
background: -webkit-linear-gradient( #d5d5d5, #595959); /* For Safari */
background: -o-linear-gradient( #d5d5d5, #595959); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient( #d5d5d5, #595959); /* For Firefox 3.6 to 15 */
background: linear-gradient( #d5d5d5, #595959); /* Standard syntax */
-webkit-border-radius: 25px;
-o-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
}
#menu ul ul {
display: none;
}
#menu ul {
height:auto;
font-size: 16px;
font-family: "Times New Roman", Times, serif;
font-weight: bold;
text-align: center;
text-shadow: 2px 2px 2px #cccccc;
text-decoration:none;
list-style: none;
position: relative;
display: table-row;
}
#menu a:link, a:visited {
display:block;
text-decoration: none;
color: #000000;
padding: 8px auto 8px auto;
}
#menu a:hover, a:active {
display:block;
padding:5px;
text-decoration:none;
color: #fff;
}
#menu ul:after {
content: "";
clear:both;
display: block;
}
#menu ul li {
display:table-cell;
width:auto;
}
#menu ul a:link, a:visited {
display: block;
padding: 5px;
color: #000;
text-decoration: none;
}
#menu ul a:hover, a:active {
display:block;
padding:5px;
text-decoration:none;
color: #fff;
}
#menu ul ul {
background: #999;
border-radius: 0px;
padding: 0;
position: absolute;
}
#menu ul ul li {
width:auto;
border-top: 1px solid #ccc;
position: relative;
display:block;
}
#menu ul ul li a {
padding: 5px;
text-align:left;
color: #000;
}
#menu ul ul li a:hover {
color: #FFF;
}
#menu ul ul:last-child, nav ul ul:last-child a {
-webkit-border-bottom-right-radius: 10px;
-o-border-bottom-right-radius: 10px;
-moz-border-radius-bottomright: 10px;
border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-o-border-bottom-left-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-left-radius: 10px;
}
.center {
text-align:center;
}
#reviews {
width:80%;
text-align:justify;
overflow:hidden;
margin:25px auto 25px auto;
}
#reviews img {
position:relative;
float:left;
}
#form {
color: #666;
margin:0px auto 0px auto;
width:350px;
}
#form p {
color: #666;
margin:0px auto 0px auto;
width:350px;
}
.bottombar {
margin:auto;
width:100%;
}
#footer {
display:block;
font-size:12px;
color: #616161;
text-align:center;
width:auto;
margin:5px auto 5px auto;
}
#footer img {
text-align:center;
color: #616161;
width:100%;
margin:5px auto 5px auto;
}
#media-footer {
text-align:center;
margin:10px 0 15px 55px;
}
#media-footer img {
text-align:center;
margin:10px 0 15px 55px;
}
nav ul {
display:none;
}
#minimenu {
display:none;
}
It's because you are adding padding to the element when it is :active:
#menu ul a:hover, a:active {
display: block;
padding: 5px;
text-decoration: none;
color: #fff;
}
It's worth noting that you are repeating the same styling in different instances.
#menu a:hover, a:active {
display: block;
padding: 5px;
text-decoration: none;
color: #fff;
}
Just remove the padding from both declarations and it will work as expected.

Getting Orientation to work for media queries

I am trying to specify css for ipad landscape and portrait mode, and for some reason, the landscape is not playing well. It looks like the landscape is just using the portrait mode. The website is http://darthvixcustomsabers.com/ascend.html and im using ipadpeek emulator to test it.
Here is my CSS, the media queries are in the middle about.
body {background-image:url('../images/space1.jpg');
background-repeat: no-repeat center center;
background-position: center;
background-size: cover;
width: 100%;
min-height: 100%;
}
body {color:white;}
a, a:visited {
color:#3399FF; text-decoration:none;}
div.header{
text-align:right;
font-size:200%;
}
div.header1 {
text-align:right;
font-size:125%;
}
div.logo{
margin-top:-40px;
}
#nav{
width:85%;
height:3%;
font-size: 26px;
font-weight: bold;
border-radius: 8px;
text-align: center;
margin: 0 auto;
position:absolute;
top:100px;
left:120px;
}
#nav ul {
height: auto;
padding: 0px 0px;
margin: 0px;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
display: inline-block;
}
#nav li {
display: inline-block;
padding: 20px;
margin-left: auto;
margin-right: auto;
}
#nav a {
text-decoration: none;
color: #3399FF;
padding: 8px 8px 8px 8px;
}
#nav a:hover {
color: #000000;
background-color:#3399FF;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
div.qui {
text-align:center;
font-size:200%;
text-decoration:underline;
}
div.specs {
text-align:center;
font-size:175%;
}
ul.qui {
text-align:center;
font-size:150%;
list-style-type: none;
}
.images {
overflow: hidden;
}
.images img {
float: left;
margin: 0px;
}
div.glams {
text-align: center;
}
.left {
float: left;
margin-left:20%;
padding:10px;
border:3px solid #585858 ;
}
.right {
float: right;
margin-right:20%;
padding:10px;
border:3px solid #585858 ;
}
p.v {
text-align:center;
}
#media only screen and (min-width: 768px) and (max-width: 770px)
and (orientation : portrait) {
div.header{
text-align:right;
font-size:140%;
}
div.header1 {
text-align:right;
font-size:100%;
}
div.logo{
margin-top:-40px;
}
div.logo
img {
height:100px;
width:200px;
}
#nav{
width:100%;
height:3%;
font-size: 100%;
font-weight: bold;
border-radius: 8px;
margin:0;
padding:0;
text-align: center;
margin-top:5%;
margin-left:-14%;
}
#nav ul {
height: auto;
padding: 0px 0px;
margin: 0;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
display: inline-block;
}
#nav li {
display: inline
padding: 5px;
margin-left: auto;
margin-right: auto;
}
#nav a {
text-decoration: none;
color:#3399FF;
padding: 8px 8px 8px 8px;
display: inline-block;
}
#nav a:hover {
color: #000000;
background-color: #FFF;
}
li:hover ul {
display: block;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
div.qui {
text-align:center;
font-size:200%;
text-decoration:underline;
margin-top:15%;
}
div.specs {
text-align:center;
font-size:175%;
}
ul.qui {
text-align:center;
font-size:150%;
list-style-type: none;
}
.images {
overflow: hidden;
}
.images img {
float: left;
margin: 0px;
}
div.one {
text-align: center;
}
.left {
float: left;
margin-left:3%;
padding:0px;
border:3px solid #585858 ;
}
.right {
float: right;
margin-right:3%;
padding:0px;
border:3px solid #585858 ;
}
p.v {
text-align:center;
}
div.glams
img {
height:180px;
width: 300px;
}
#media only screen
and (min-device-height : 768px)
and (min-device-width : 1024px)
and (orientation : landscape) {
body { background: green; }
div.header{
text-align:right;
font-size:140%;
}
div.header1 {
text-align:right;
font-size:100%;
}
div.logo{
margin-top:-40px;
}
div.logo
img {
height:80px;
width:150px;
}
#nav{
width:100%;
height:3%;
font-size: 100%;
font-weight: bold;
border-radius: 8px;
margin:0;
padding:0;
text-align: center;
margin-top:5%;
margin-left:-14%;
}
#nav ul {
height: auto;
padding: 0px 0px;
margin: 0;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
display: inline-block;
}
#nav li {
display: inline
padding: 5px;
margin-left: auto;
margin-right: auto;
}
#nav a {
text-decoration: none;
color:#3399FF;
padding: 8px 8px 8px 8px;
display: inline-block;
}
#nav a:hover {
color: #000000;
background-color: #FFF;
}
li:hover ul {
display: block;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
div.qui {
text-align:center;
font-size:200%;
text-decoration:underline;
margin-top:15%;
}
div.specs {
text-align:center;
font-size:175%;
}
ul.qui {
text-align:center;
font-size:150%;
list-style-type: none;
}
.images {
overflow: hidden;
}
.images img {
float: left;
margin: 0px;
}
div.one {
text-align: center;
}
.left {
float: left;
margin-left:3%;
padding:0px;
border:3px solid #585858 ;
}
.right {
float: right;
margin-right:3%;
padding:0px;
border:3px solid #585858 ;
}
p.v {
text-align:center;
}
div.glams
img {
height:180px;
width: 300px;
}
}
You can identify orientation by CSS media queries
/* portrait */
#media screen and (orientation:portrait) {
/* portrait-specific styles */
}
/* landscape */
#media screen and (orientation:landscape) {
/* landscape-specific styles */
}

CSS Footer background no full on iPad browser

I have add a footer background image.It's look perfect on my PC. But it show up not correct on iPad browser. I'm try to upload image to show you guy but i'm very new on stackoverflow so i can't upload.If anyone know how to show you guy an image. Please let me know i will upload it. Please have a look at the Black part bottom right. Anyone please help me to fix this problem
Thank you
I add this line to my css.
.footer{ border-top: 4px solid #00b0bd; }
.footer a{ color: #000000;}
.footer-container { width:100%; text-align: left; background: url("../images/footer/footer_damask.gif") repeat scroll 0 0 #333333;}
.footer { margin: 0 auto 15px; width: 960px; }
.aditional-footer { margin:0 auto 0; padding: 30px 0 30px; width: 960px; background-image:none !important;}
.footer .links li { text-transform: none; }
.footer-container a { color:#666669; font-size: 11px; width: 960px; }
.footer-container .footer-right { width: 250px; }
.footer .f-right { width:429px; text-align: right; padding-right:20px; }
this is my full CSS.
/* Footer ================================================================================ */
.footer-social-container { width:100%; background: none repeat scroll 0 0 #404040; border-top: 0 solid #00aebb;}
.footer-social { width:960px; padding: 5px 0; margin:0 auto; }
.footer-social .phone { color:#111; float:right; font-size:16px; }
.footer-social .follow_us { display: inline-block; font-size: 16px; margin: 0; float: left; color:#ffffff; }
.footer-social .twitter,
.footer-social .rss,
.footer-social .facebook { margin-left: 5px; text-indent: -9999px; display: inline-block; float: left; background-repeat: no-repeat; background-position: top center; height:24px; width:30px; }
.footer-social .twitter:hover,
.footer-social .rss:hover,
.footer-social .facebook:hover { background-position: bottom center; }
.footer-social .twitter { background-image: url(../images/twitter.png); }
.footer-social .rss { background-image: url(../images/rss.png); }
.footer-social .facebook { background-image: url(../images/facebook.png); }
.footer-social .gift_img { float: left; border-left: 1px solid #00afbc; border-right: 1px solid #00afbc; padding: 0 50px; margin: 0 0 0 100px; }
.footer{ border-top: 4px solid #00b0bd; }
.footer a{ color: #000000;}
.footer-container { width:100%; text-align: left; background: url("../images/footer/footer_damask.gif") repeat scroll 0 0 #333333;}
.footer { margin: 0 auto 15px; width: 960px; }
.aditional-footer { margin:0 auto 0; padding: 30px 0 30px; width: 960px; background-image:none !important;}
.footer .links li { text-transform: none; }
.footer-container a { color:#666669; font-size: 11px; width: 960px; }
.footer-container .footer-right { width: 250px; }
.footer .f-right { width:429px; text-align: right; padding-right:20px; }
.footer ul { display:inline; }
.footer li { display:inline; background:url(../images/bkg_pipe1.gif) 100% 50% no-repeat; padding:0 5px 0 0; margin:0 3px 0 0; }
.footer .links li.last { background:none !important; padding-right:0 !important; }
.footer .bugs { margin:0; color:#666; }
.footer .bugs a { font-weight:bold; color:#353535; }
.footer address { color:#666; }
.footer address a { color:#353535; }
.policy li { margin-left:2px; padding-left:10px ; line-height: 1.5; background: url(../images/footer_li.png) no-repeat left top;}
.policy li:hover { background: url(../images/footer_li.png) no-repeat left bottom;}
.footer-container .form-subscribe { }
.footer-container .form-subscribe label { padding-top:2px; font-weight:bold; color:#555; }
.footer-container .form-subscribe .input-box { border: 1px solid #EFEFEF; width: auto; float: left; height: 27px;}
.footer-container .form-subscribe button.button { float:left; width: 58px;}
.footer-container .form-subscribe button.button span { height: 22px; font: normal 11px/22px Tahoma, Verdana, Arial, sans-serif; }
.footer-container .form-subscribe input.input-text { width: 180px; border: 0px solid #d6d4d4; border-right:0; padding: 0; padding-left: 8px; float:left; height: 27px; line-height: 27px; }
.footer-container .form-subscribe input.input-text:focus { border: 1px solid #FF292C; border-right: 0; height: 25px; line-height: 15px }
.footer-container .form-subscribe input.input-text.validation-failed { background: none!important; border-right:0!important; }
.footer-container .form-subscribe .validation-advice { position: absolute; width: 171px; margin-top: 31px; background: white; padding:5px; }
.footer-container .footer-callout { display:block; margin:-10px 0 10px; position:relative; }
.footer-container .store-switcher { color:#555; text-align:right; }
.footer-container .store-switcher label { font-weight:bold; vertical-align:middle; }
.footer-container .store-switcher select { padding:0; vertical-align:middle; }
.footer-container .bottom-container { margin:0 0 8px; text-align:right; }
/* ======================================================================================= */
Not an iPad specific problem, rather a low horizontal resolution one. I've the same bug in Chrome when my window is narrow.
Why ?
Your .page is 960px wide, overflowing your body which is 100% (768px on iPad)
Your footer is 100% width, so the same width than your body, 768px.

IE hates my CSS file so much I get no content!

My web site seems to be working fine with every other broser but IE8, IE9 and compatibility mode!!
As soon as I disable my CSS, I see content, but when its switched back on I get nothing!
This is giving my hell.
This is my CSS here:
body {
background: center top url(./images/background.jpg) no-repeat;
background-color: #FFF;
margin: 0px;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #8e8f91;
}
h1 {
font-size: 12px;
color: #FFFFFF;
text-transform: uppercase;
line-height: normal;
margin: 0;
padding: 0;
letter-spacing: 1px;
}
#Table_01 {
top:0px;
width:1200px;
margin: 0 auto;
}
.backing {
background: repeat transparent url(./images/backing.png);
padding: 4px;
margin-left: 4px;
margin-top: 443px;
width: 130px;
text-transform: uppercase;
color: #FFF;
font-size: 11px;
letter-spacing: 1px;
}
.backing a, a:active {
text-decoration: none;
color: #FFFFFF;
}
.backing a:hover {
text-decoration: underline;
color: #FFFFFF;
}
.snipet {
background: repeat transparent url(./images/backing.png);
padding: 4px;
margin: 4px;
width: 100px;
text-transform: uppercase;
color: #FFF;
font-size: 11px;
letter-spacing: 1px;
}
.snipet_text {
font-size: 12px;
font-style: italic;
font-weight: normal;
letter-spacing: 0px;
line-height: 18px;
}
.snipet_container {
margin: 10px;
}
a, a:active {
text-decoration: underline;
color: #8e8f91;
}
a:hover {
text-decoration: none;
}
a img {
border:none;
}
.clear {
clear:both;
}
ul.menu {
list-style:none;
margin: 0;
padding: 0;
}
ul.menu li {
width:auto;
height:29px;
margin-left: 1px;
}
ul.menu li a {
display:block;
position:relative;
}
ul.menu li a img {
position:absolute;
z-index:1;
}
ul.menu li span {
display:block;
height: 29px;
width: auto;
position:absolute;
z-index:2;
}
/* TABLES */
div.index-1_ {
position:absolute;
left:0px;
top:0px;
width:1200px;
height:17px;
}
div.index-2_ {
position:absolute;
left:0px;
top:22px;
width:33px;
height:675px;
}
div.index-3_ {
position:absolute;
left:33px;
top:22px;
width:208px;
height:221px;
}
div.index-4_ {
position:absolute;
left:241px;
top:22px;
width:12px;
height:675px;
}
div.index-5_ {
position:absolute;
left:254px;
top:22px;
width:82px;
height:29px;
}
div.index-6_ {
position:absolute;
left:335px;
top:22px;
width:10px;
height:43px;
}
div.index-7_ {
position:absolute;
left:346px;
top:22px;
width:102px;
height:29px;
}
div.index-8_ {
position:absolute;
left:447px;
top:22px;
width:11px;
height:43px;
}
div.index-9_ {
position:absolute;
left:459px;
top:22px;
width:77px;
height:29px;
}
div.index-10_ {
position:absolute;
left:535px;
top:22px;
width:10px;
height:43px;
}
div.index-11_ {
position:absolute;
left:546px;
top:22px;
width:87px;
height:29px;
}
div.index-12_ {
position:absolute;
left:632px;
top:22px;
width:10px;
height:43px;
}
div.index-13_ {
position:absolute;
left:643px;
top:22px;
width:73px;
height:29px;
}
div.index-14_ {
position:absolute;
left:715px;
top:22px;
width:485px;
height:43px;
}
div.index-15_ {
position:absolute;
left:253px;
top:46px;
width:82px;
height:14px;
}
div.index-16_ {
position:absolute;
left:345px;
top:46px;
width:102px;
height:14px;
}
div.index-17_ {
position:absolute;
left:458px;
top:46px;
width:77px;
height:14px;
}
div.index-18_ {
position:absolute;
left:545px;
top:46px;
width:87px;
height:14px;
}
div.index-19_ {
position:absolute;
left:642px;
top:46px;
width:73px;
height:14px;
}
div.index-20_ {
position:absolute;
left:253px;
top:60px;
width:1px;
height:481px;
}
div.index-21_ {
position:absolute;
left:254px;
top:60px;
width:249px;
height:470px;
background-image: url(./images/projects/HomeProject001.jpg);
}
div.index-22_ {
position:absolute;
left:503px;
top:60px;
width:618px;
height:442px;
background-color: #CBCBCB;
}
div.index-23_ {
position:absolute;
left:1121px;
top:60px;
width:79px;
height:632px;
}
div.index-24_ {
position:absolute;
left:33px;
top:238px;
width:208px;
height:67px;
}
div.index-25_ {
position:absolute;
left:503px;
top:502px;
width:606px;
height:16px;
background-image: url(./images/index-25.png);
padding:6px;
}
div.index-26_ {
position:absolute;
left:254px;
top:530px;
width:867px;
height:11px;
}
div.index-27_ {
position:absolute;
left:253px;
top:541px;
width:619px;
height:151px;
background-color: #FFF;
}
div.index-28_ {
position:absolute;
left:872px;
top:541px;
width:249px;
height:151px;
background-image: url(./images/index-28.png);
}
/* sliding panel */
/***** clearfix *****/
.clear {clear: both;height: 0;line-height: 0;}
.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
.clearfix {height: 1%;}
.clearfix {display: block;}
#toppanel {
position: absolute; /*Panel will overlap content */
/*position: relative;*/ /*Panel will "push" the content down */
top: 0;
left: 0;
width: 100%;
z-index: 999;
text-align: center;
margin-left: auto;
margin-right: auto;
font-size: 130%; /* font-size set to 130% for the default Kubrick Wordpress theme */
}
#panel {
width: 100%;
height: 280px;
color: #333;
background: transparent url(images/tab_bk.png) repeat;
overflow: hidden;
position: relative;
z-index: 3;
display: none;
}
#panel h1 {
font-size: 1.6em;
padding: 5px 0 10px;
margin: 0;
color: #15ADFF;
text-align: left;
}
#panel h2{
font-size: 1.2em;
padding: 10px 0 5px;
margin: 0;
color: #e01000;
text-align: left;
}
#panel p {
margin: 5px 0;
padding: 0;
}
#panel a {
text-decoration: underline;
color: #333;
}
#panel a:hover {
color: #666;
}
#panel a-lost-pwd {
display: block;
float: left;
}
#panel ul {
margin: 0 0 5px 0;
padding: 0;
line-height: 1.6em;
list-style: none;
}
#panel .content {
width: 960px;
margin: 0 auto;
padding-top: 15px;
text-align: left;
font-size: 0.85em;
}
#panel .content .left {
width: 280px;
float: left;
margin-bottom: 25px;
padding: 0 15px;
min-height: 220px;
}
#panel .content .border {
border-left: 1px solid #333;
}
#panel .content .narrow {
width:1000px !important;
}
#panel .content form {
margin: 0 0 10px 0;
}
#panel .content label {
padding-top: 8px;
clear: both;
width: 280px;
display: block;
}
#panel .content input.field {
border: 1px #1A1A1A solid;
background-color: #efefef;
margin-right: 5px;
margin-top: 4px;
width: 300px;
color: white;
height: 16px;
}
#panel .content input:focus.field {
background: #ccc;
}
#panel .content .ui-state-highlight .ui-icon {background-image: url(./images/icon_sprite.png); width: 16px; height: 16px; margin-top: -2px;}
#panel .content .ui-state-error .ui-icon, #panel .content .ui-state-error-text .ui-icon { background: url(./images/icon_sprite.png) -16px 0 no-repeat !important; width: 16px; height: 16px; margin-top: -2px;}
#panel .content .ui-state-highlight { border: 1px solid #d2dbf4; background: #f4f8fd; color: #0d2054; }
#panel .content .ui-state-error { border: 1px solid #e2d0d0; background: #fcf0f0; color: #280b0b;}
/* BUTTONS */
#panel .content .ui-button {
outline: none;
color: #1c4257;
border-color: #7096ab;
display: block;
font-size: 14px;
font-weight: bold;
border: thin solid;
margin-top: 20px;
padding: 4px 20px 4px 20px;
}
#panel .content .ui-button:hover {
background: #fbc900;
}
/* Panel Tab/button */
.tab {
height: 25px;
position: relative;
top: 0;
z-index: 999;
}
.tab ul.login {
display: block;
position: relative;
float: right;
clear: right;
width: auto;
font-weight: bold;
line-height: 25px;
margin: 0;
right: 150px;
color: white;
font-size: 80%;
text-align: center;
}
.tab ul.login li.left {
background: url(images/tab_l.png) no-repeat left 0;
height: 25px;
width: 30px;
padding: 0;
margin: 0;
display: block;
float: left;
}
.tab ul.login li.right {
background: url(images/tab_r.png) no-repeat left 0;
height: 25px;
width: 30px;
padding: 0;
margin: 0;
display: block;
float: left;
}
.tab ul.login li {
text-align: left;
padding: 0 6px;
display: block;
float: left;
height: 25px;
background: url(images/tab_m.png) repeat-x 0 0;
}
.tab ul.login li a {
color: #15ADFF;
}
.tab ul.login li a:hover {
color: #333;
}
.tab .sep {color:#666}
.tab a.open, .tab a.close {
height: 20px;
line-height: 20px !important;
padding-left: 30px !important;
cursor: pointer;
display: block;
width: 100px;
position: relative;
top: 2px;
}
.tab a.open {background: url(images/bt_open.png) no-repeat left 0;}
.tab a.close {background: url(images/bt_close.png) no-repeat left 0;}
.tab a:hover.open {background: url(images/bt_open.png) no-repeat left -19px;}
.tab a:hover.close {background: url(images/bt_close.png) no-repeat left -19px;}
I know it's a little messy... Sorry :(
how to determine the error:
remove all classes from the stylesheet.
add the classes one by one.
see when/where it fails
fix/solve bug
if not at the end proceed to step 2
#panel {
width: 100%;
height: 280px;
color: #333;
background: transparent url(images/tab_bk.png) repeat;
overflow: hidden;
position: relative;
z-index: 3;
display: none;
}
Though the DIV was actually closed off, for some reason IE completely ignored it!
This was the problem:
display: none;
So all I did was place the DIV in the footer at it all worked. It still puzzled me why it was only doing it in IE!!

Resources