iPad web app Full screen in Desktop version - css

I have web page which works fine on browser on device but when i save to home screen to that web page and open from that there exits some screen sizing issue while opening it from icon from desktop.how to settle this.
My css code is below
*, body, div, h1, h2, h3, h4, h5, h6, p, ul, li, img, nav, header, section {
margin: 0; padding: 0; border: 0;
}
/* Styles */
body {
width:2048px;
height:748px;
background-color: #fff;
overflow: hidden;
font-family:Verdana, Geneva, sans-serif;
}
#container {
position:absolute;
width: 2048px; margin:0;
overflow-x:hidden;
overflow-y:hidden;
padding: 0;
}
.panel{
background-image:url(image/testing_file_1.png);
background-repeat:no-repeat;
height:748px;
width:1024px;
position:relative;
float: left;
padding:0;
bottom:0;
top:0;
margin:0;
display:inline;
}
.main_heading{
float:left;
margin:47px 0 0 60px;
font-size:24px;
font-weight:bold;
color:#FFF;
}
.main_heading_two{
float:left;
margin:47px 0 0 60px;
font-size:24px;
font-weight:bold;
color:#FFF;
}
.menu {
float:right;
margin: 39px 18px 0 0;
height:47px;
background-repeat:no-repeat;
}
.menu ul li {
list-style:none;
float:left;
}
.menu ul li a {
text-decoration:none;
display:block;
}
.menu .active {
text-decoration:none;
background-image:url();
}
.menu .stix {
width:2px;
font-size:0px;
background-image:url(image/seperator.gif);
background-repeat:no-repeat;
padding:0;
height:47px;
}
.midmenu {
list-style-type:none;
float:left;
height:62px;
width:61px;
margin: 248px 0 0 0;
}
.midmenu1 {
float:right;
list-style-type:none;
height:62px;
width:61px;
margin: 248px -500px 0 0px;
}
.rightclass img{
padding: 2px 20px;
float:right;
width:459px;
height:560px;
z-index:10;}
.text_paragraph{
float:left;
width:450px;
color:#FFF;
margin-left:80px;
margin-top:-525px;
}
.text_paragraph_1{
float:left;
width:420px;
color:#FFF;
margin-left:80px;
margin-top:-464px;
}
.text_paragraph_1 ul{
float:left;
color:#FFF;
margin-left:40px;
margin-top:5px;
}
.text_paragraph_1 ul li{
margin-top:5px;
}
.text_paragraph_2{
float:left;
width:450px;
color:#FFF;
margin-left:80px;
margin-top:-285px;
}
.text_paragraph_2 ul{
float:left;
color:#FFF;
margin-left:40px;
margin-top:5px;
}
.text_paragraph_2 ul li{
margin-top:5px;
font-style:italic;
}
.text_paragraph_2 p{
float:left;
color:#FFF;
margin-top:5px;
}
.linkbutton{
margin:-70px 0 0 70px;
float:left;}
small
{
font-size:9px;
}
.rightclass_one img{
margin: 2px 21px;
float:right;
width:459px;
height:560px;
z-index:10;}
.midmenu_1 {
list-style-type:none;
float:left;
height:62px;
width:61px;
margin: -45px 0 0 0;
}
.midmenu_2 {
float:right;
list-style-type:none;
height:62px;
width:61px;
margin: -45px -500px 0 0px;
}
.right_text{
float:right;
color:#000;
margin-right:-470px;
width:440px;
text-align:center;
margin-top:-270px;}
.image_21{
float:right;
margin-right:-390px;
margin-top:-190px;}
.ratemeter{
float:right;
margin-right:-410px;
margin-top:20px;}
.image_one{
float:right;
margin-right:-450px;
margin-top:92px;
z-index:5;
}
.image_two{
float:right;
margin-top:93px;
margin-right:-254px;
z-index:10;
}
.image_one_one{
float:right;
margin-top:95px;
margin-right:-317px;
z-index:10;
}
.image_two_two{
float:right;
margin-right:-452px;
margin-top:92px;
}

Try to put this in your head from your webpage:
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no" name="viewport" />

Okay... that's completely clear, why you've got a fixed height... in your body you set height to 748px... thats not variable.
Try something like this:
I used this in my webapp and it worked fine:
body {
position: relative;
margin: 0;
-webkit-text-size-adjust: none;
min-height: 416px;
-webkit-touch-callout: none;
}
I tried to edit your code, but i don't know, if it will work for you. please have a try:
body {
width:2048px;
min-height:748px;
background-color: #fff;
overflow: hidden;
font-family:Verdana, Geneva, sans-serif;
-webkit-text-size-adjust: none;
-webkit-touch-callout: none;
margin: 0;
position: relative;
}

Related

Mobile menu don't show on mobile phone only on desktop

I created CSS mobile menu on my site and it works fine on my laptop. When i minimize browser on laptop under 680px default menu became mobile menu, but on smartphone don't work like that it stay default menu. What did I do wrong?
/* CSS Document */
body{
font-family: 'Prompt', Sans-serif;
background-image: url(wallpaper.png);
background-color:#ECCB6C;
background-repeat: no-repeat;
background-attachment: fixed;
margin: 0;
padding: 0;
text-align: center;
}
header{
background-image:url(logo.png);
background-repeat:no-repeat;
background-position:bottom left;
width:60%;
height:220px;
margin:0 auto;
padding:0;
}
nav{
width:70%;
height:auto;
margin:0 auto 3px auto;
background-image:url(hfbkg.png);
padding:0 80px 0 80px;
}
nav ul{
overflow:hidden;
padding:0;
text-align:center;
margin:0;
transition:max-height 0.4s;
-webkit-transition:max-height 0.4s;
-ms-transition:max-height 0.4s;
-moz-transition:max-height 0.4s;
-o-transition:max-height 0.4s;
}
nav ul li{
display:inline-block;
padding:5px 7px;
}
nav ul li:hover{
background-color:#FFFFFF;
}
.handle {
width:100%;
text-align:left;
box-sizing:border-box;
padding:15px 10px;
cursor:pointer;
color:#FFFFFF;
display:none;
}
#media screen and (max-width: 680px){
nav ul{
max-height:0;
}
.showing{
max-height:20em;
}
nav ul li{
box-sizing:border-box;
width: 100%;
padding:15px 0px;
margin:0;
text-align:left;
}
.handle{
display:block;
}
}
#media (max-width:680px){
#kontakt{
width:100%;
}
#iframe{
width:100%;
}
}
section{
width:70%;
height:auto;
background-image:url(textbkg.png);
line-height:1.5em;
font-size:1.1em;
padding:60px 80px;
margin:0 auto;
clear:both;
}
section a:link {
color:#000000;
}
section a:hover {
text-decoration: none;
color:#FFAE00;
}
section a:visited {
text-decoration: none;
color:#000000;
}
#textarea{
width:350px;
height:200px;
padding:2px;
margin:5px;
}
#ime{
width:350px;
height:20px;
padding:2px;
margin:5px;
}
#email{
width:350px;
height:20px;
padding:2px;
margin:5px;
}
#decoupauge img{
margin:1%;
border: thick solid;
with: 15px;
color: #353439;
padding:2px;
}
#ukrasi img{
margin:1%;
border: thick solid;
with: 15px;
color: #353439;
padding:2px;
}
#sponzori{
margin:5%;
align-content:center;
}
#kontaktobr{
width:400px;
height:auto;
margin:20px 0;
padding:10px;
float:left;
}
#iframe{
float:right;
margin:20px 0;
padding:10px;
}
#adresa { /* pošto su iframe i kontakt obrazac u floatu u adresi ne smije biti float zato što adresa razvlači section background do footera */
width:410px;
height:auto;
margin:10px;
padding:20px;
}
#adresa p {
margin:0px;
padding:0;
}
#adresa a:link{
color:#000000;
text-decoration: none;
}
#adresa a:hover{
text-decoration: none;
color:#FFAE00;
}
footer{
width:70%;
height:auto;
margin:3px auto 0 auto;
background-image:url(hfbkg.png);
padding:5px 80px;
text-align:end;
color:#FFFFFF;
clear:both;
}
footer a:hover{
color:#FBEE9A;
}
a{
margin:0;
}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color:#FFFFFF;
}
a:hover {
text-decoration: none;
color:#363539;
}
a:active {
text-decoration: none;
color: #363539;
}
p{
text-align:justify;
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Index</title>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Prompt" rel="stylesheet">
<style type="text/css">
body,td,th {
font-family: Prompt, Sans-serif;
}
</style>
</head>
<body background="wallpaper.png">
<header>
</header>
<nav>
<ul>
<li>Početna</li>
<li>Terapije</li>
<li>Glerija</li>
<li>Donacije</li>
<li>Linkovi</li>
<li>Kontakt</li>
</ul>
<div class="handle">Menu</div>
</nav>
<section>
<h3><strong>O nama</strong></h3>
<p> Udruga je počela sa radom 2013. godine..</p>
</section>
<script>
$('.handle').on('click', function(){
$('nav ul').toggleClass('showing');
});
</script>
<footer>
<a>Copyright 2016</a>
</footer>
</body>
</html>
You didn't define a viewport?
It needs a meta tag in the <head> to work:
<meta name="viewport" content="width=device-width, initial-scale=1" />

Volusion Override CSS page width

I'm having an absolute nightmare with Volusion! Basically, I want to make my page wider so that I can fit more on it, and have a bit of an experiment with how the page is set out.
I've tried editing the CSS but it either doesn't change or everything seems to move out of place! This is the CSS i'm attempting to work with:
div.pages_available_text {
font-size: 17px !important;
font-weight: bold !important;
}
a{text-decoration:none;}
a,a:visited,a:active{outline-style:none;}
a:hover{text-decoration:underline;
color:#79CDCD;}
img{border:none!important;}
.begin{border:none !important;}
.end{border:none !important;}
.bold{font-weight:bold !important;}
.highlight{color:#06a0cf !important;}
.left{float:left;}
.right{float:right;}
.clear{clear:both;}
.none{display:none !important;}
.block{display:block !important;}
.inline{display:inline !important;}
/* ############################### FIXES ############################### */
.qe_toolbar_ovr{z-index:9999 !important;} /*admin box*/
/* ############################### WINTER 09 STYLES ############################### */
.next_page_img{width:auto !important; height:auto !important;}
.previous_page_img{width:auto !important; height:auto !important;}
.soft_add_content_area span, .quantity{color:#000;}
.soft_add_wrapper {z-index:1100;}
/* ############################### PAGE WRAPPER ############################### */
body{
background-color:#ffcd05;
color:#505050;
font: normal 17px Arial, Helvetica, sans-serif;
margin:0;
padding:0;
text-align:center;
}
#page{
margin:0 auto;
text-align:left;
width:980px;
}
div{
font-size: 15px;
font:Arial, Helvetica, sans-serif;
}
#app {
color:#FFFF00;
font-size:20px;
text-align:center;
border-radius: 5px;
background-color:#000000;
clear:both;
border:none;
float:left;
width:160px;
padding:5px;
font-family:Coolsville, Cursive, sans-serif;
margin-bottom:10px;
}
#download {
height:70px;
width:71px;
}
#video {
align:middle;
}
/* ############################### HEADER ############################### */
#header{
background:url(../images/template/header_bg.jpg) no-repeat 22px 35px;
height:180px;
margin:0 auto;
padding:0;
position:relative;
width:980px;
}
#header div#display_homepage_title{
height:50px;
left:22px;
margin:0;
padding:0;
position:absolute;
top:77px;
width:400px;
}
#header div#display_homepage_title a{
display:block;
height:100%;
left:0;
margin:0;
padding:0;
position:absolute;
text-align:left;
text-indent:-9999px;
top:0;
width:100%;
}
#header div a#homepage_title{
background:none;
color:#2c2c2c;
font-size:20px;
text-indent:0;
}
#header .top{
background:url(../images/template/divider.gif) repeat-x 0 bottom;
color:#202020;
font-size:13px;
margin:0;
padding:1px 1px 2px;
text-align:right;
}
#header .top a{
border-right:1px solid #202020;
display:inline-block;
color:#202020;
font-size:13px;
height:13px;
padding:0 0px;
vertical-align:middle;
}
.app {
padding:10px;
}
.social {
padding:5px;
float:center;
}
/* ############################### SEARCH BOX */
#display_search{
background:url(../images/template/searchBg.gif) no-repeat 0 0;
float:right;
bottom:5px;
height:21px;
margin:12px 20px 0 0;
width:213px;
}
#display_search form{
height:100%;
margin:0;
padding:0;
width:100%;
}
#display_search #search_input{
background:none;
border:none;
color:#2c2c2c;
display:block;
float:left;
font:normal 12px Arial, Helvetica, sans-serif;
margin:0;
padding:4px 10px 2px 10px;
text-align:left;
width:168px;
}
#display_search #search_submit{
background:none;
border:none;
color:#fff;
cursor:pointer;
display:block;
float:right;
font-size:0;
height:21px;
margin:0;
padding:0;
text-align:right;
text-indent:-9999px;
width:24px;
}
/* ############################### SHOPPING CART DISPLAY */
#header .cart{
color:#202020;
font-size:13px;
float:right;
margin:8px 8px 0 0;
text-align:right;
}
#header .cart a{color:#202020;}
#display_cart_summary,
.cartsummary_full,
.cartsummary_empty{display:inline;}
#display_cart_summary a{display:none !important;}
/* ############################### TOP NAVIGATION ############################### */
#topnav{
background:url(../images/template/divider.gif) repeat-x 0 0;
min-height:52px;
margin:0 auto;
padding:2px 0px 0;
width:980px;
}
/* ############################### CONTENT ############################### */
#content{
background:url(../images/template/contentBg.gif) repeat-y 0 0;
margin:0 auto;
width:980px;
}
#content .inner{
padding:0px 10px 0;
margin-left:8px ;
}
/* ############################### LEFT_NAV ############################### */
#leftnav{
float:left;
width:190px;
}
#leftnav h3{
font-size:17px;
font-weight:normal;
padding:5px 5px 5px 15px;
text-transform:uppercase;
}
#leftnav .menu{padding-bottom:28px;}
/* ############################### PROMOTIONS */
#display_promotions_999{
margin:0;
padding:10px 0;
text-align:center;
vertical-align:middle;
width:1200px;
}
/* ############################### CONTENT AREA ############################### */
#content_area{
float:right;
padding:0 10px;
text-align:left;
width:700px;
}
#content #content_area table{text-align:left;}
/* ############################### FOOTER ############################### */
#footer{
background:url(../images/template/contentBot.gif) no-repeat 0 0;
margin:0 auto;
padding-top:10px;
width:980px;
}
#footer .top{
background:#2c2c2c url(../images/template/footerBg.gif) no-repeat 0 bottom;
color:#000000;
font-size:13px;
padding:20px 20px 15px;
width:940px;
}
/* ############################### MAILING LIST */
#eList{
float:right;
width:186px;
}
#eList div.title{
color:#ffcd05;
font-size:13px;
font-weight:bold;
margin:0 5px 6px 0;
text-align:right;
}
#eList form{
background:url(../images/template/elistBg.gif) no-repeat 0 0;
height:22px;
margin:0;
padding:0;
width:186px;
}
#elist_input{
background:none;
border:none;
color:#fff;
display:block;
float:left;
font:normal 11px Arial, Helvetica, sans-serif;
margin:0;
padding:5px 10px 3px 10px;
text-align:left;
width:145px;
}
#elist_submit {
background:none;
border:none;
color:#2c2c2c;
cursor:pointer;
display:block;
float:right;
font-size:0;
height:22px;
margin:0;
padding:0;
text-align:right;
text-indent:-9999px;
width:20px;
}
#footer .top ul{
float:left;
list-style:none;
margin:0;
padding:0;
width:188px;
}
#footer .top ul li.title{
color:#ffcd05;
font-weight:bold;
}
#footer .top ul li{
color:#fff;
font-size:13px;
padding-bottom:4px;
}
#footer .top ul li a{
color:#fff;
}
#footer .bottom{
color:#505050;
font-size:12px;
line-height:20px;
margin:20px auto;
text-align:center;
width:999px;
}
#footer .bottom a{
color:#505050;
}
I'm ok with HTML and CSS but pretty hopeless at anything else and i've read so many articles and forums but can't seem to get anywhere!
If you are referring to the mytoolkit.co.uk site, you are editing the wrong element. You need to make the page container div wider and then work your way down from there.
In your case, it looks like you need to edit the div with the ID "page". For example:
#page {width:1024px}
Then you would edit any additional child divs like the header, content, and footer divs.

My website is not fitting to each screen resolution of pc

Hello i have created a website in 3 months using HTML, CSS, Jquery and PHP.
for design and layout i have used CSS, after building this website i have noticed that
Whenever i m opening my website in small screens so there is need of width scroll to see
whole page especially the language dropdown selection in right corner of page.
in my CSS i have used PX for divs such as wrapper, header and etc
Someone told me to use Percentage instead of PX, but i have reached to end.
First guys what i should do to solve this problem?
Second is there any way to convert from PX to Percentage.
.wrapper
{
width:1320px;
height:760px;
border:solid 1px #000;
margin:0 auto;
background:url(images/Background_Image.jpg) no-repeat;
}
.wrapper .logo
{
background:url(images/logo.png) no-repeat bottom;
width:360px;
height:180px;
margin-left:345px;
margin-top:10px;
float:left;
}
.wrapper .language
{
float:right;
background-color:#006;
padding:5px 10px;
border-radius:4px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.2em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-align:center;
}
.wrapper .language a
{
color:#FFF;
text-decoration:none;
font:"calibiri";
}
.wrapper .search_property
{
width:300px;
height:500px;
margin-right:58px;
margin-top:80px;
float:right;
}
.wrapper .search_property .title
{
background:url(images/protitle.fw.png) no-repeat;
width:295px;
height:80px;
margin-bottom:10px;
float:left;
text-align:center;
color:#FFF;
font: bold 1.7em "Calibri";
}
.wrapper .search_property .province
{
background:url(images/proprovince.fw.png) no-repeat;
width:295px;
height:70px;
float:left;
margin-bottom:10px;
text-align:center;
}
/* start design for the province */
select
{
width:195px;
margin-top:23px;
padding:3px 3px 3px 46px;
font: bold 1em "Calibri";
-webkit-border-radius:1px;
-moz-border-radius:1px;
border-radius:1.3px;
-webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
-moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
background: #f6f6f8;
color:#000;
border:none;
outline:none;
display: inline-block;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
cursor:pointer;
}
option
{
text-align:center;
}
/* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */
#media screen and (-webkit-min-device-pixel-ratio:0) {
select {padding-right:18px}
}
.la
{
position:relative;
}
.la:after {
content:'<>';
font:11px "Consolas", monospace;
color:#000;
-webkit-transform:rotate(90deg);
-moz-transform:rotate(90deg);
-ms-transform:rotate(90deg);
transform:rotate(90deg);
right:8px; top:2px;
padding:0 0 2px;
border-bottom:1px solid #ddd;
position:absolute;
pointer-events:none;
}
.la:before {
content:'';
right:3.5px;
top:-1px;
width:25px; height:22px;
background:#ccc;
position:absolute;
pointer-events:none;
display:block;
}
/* end design for the province */
.wrapper .search_property .district
{
background:url(images/prodistrict.fw.png) no-repeat;
width:295px;
height:70px;
float:left;
margin-bottom:10px;
text-align:center;
}
.wrapper .search_property .propertystatus
{
background:url(images/prostatus.fw.png) no-repeat;
width:295px;
height:90px;
float:left;
margin-bottom:10px;
color:#FFF;
padding:20px 0 0 0;
}
radio
{
cursor:pointer;
}
.wrapper .search_property .probutton
{
width:270px;
height:50px;
float:left;
margin-bottom:3px;
padding:0 0 0 25px;
}
.wrapper .search_property .postprobutton
{
width:285px;
height:40px;
float:left;
margin-top:5px;
padding:0 0 0 10px;
}
#Submitbutton
{
background: #006 url(images/a.fw.png) no-repeat right;
padding:5px 15px;
border-radius:4px;
width:233px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.5em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-align:left;
}
#pypbutton
{
background: #006 url(images/Property%20List.png) no-repeat right;
padding:5px 15px;
border-radius:4px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.4em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-decoration:none;
}
.wrapper .slideshow
{
width:395px;
height:264px;
margin-left:325px;
margin-top:24px;
float:left;
}
.wrapper .menu
{
width:412px;
height:20px;
margin-left:327px;
margin-top:40px;
float:left;
}
.wrapper .menu .aboutus
{
width:68px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .myaccount
{
width:85px;
height:18px;
color:#fff;
margin:0px 5px 0px 0px;
font: 1em Arial, Helvetica, sans-serif;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .services
{
width:65px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .career
{
width:54px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .contactus
{
width:87px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
}
.wrapper .footer
{
background:url(images/footerbg.jpg) bottom;
width:1120px;
height:155px;
margin-top:15px;
float:left;
margin-left:100px;
}
.wrapper .footer .footer_in
{
width: 900px;
height: auto;
margin: auto;
padding: 14px 0px 0px 0px;
}
.wrapper .footer .footer_in .footer_navigation
{
/*width:412px;*/
height:128px;
float:left;
font-size:11px;
background:url(images/border.jpg) right no-repeat;
font: 1em "Calibri";
width:350px;
}
.wrapper .footer .footer_in .footer_navigation .fn_heading
{
width:310px;
font: 1em "Calibri";
color:#fff;
height:37px;
font-size:12px;
background:url(images/footerimg.png) no-repeat;
padding-left:10px;
line-height:24px;
}
.wrapper .footer ..footer_in .footer_navigation ul {
float:left;
width:320px;
padding-left:9px;
}
.wrapper .footer .footer_in .footer_navigation li {
float:left;
width:127px;
background:url(images/listimg.gif) no-repeat left;
padding-left:12px;
display:block;
padding-bottom:4px;
}
.wrapper .footer .footer_in .footer_navigation li a
{
color:#fff;
text-decoration:none;
}
.wrapper .footer .footer_in .footer_navigation li a:hover {
text-decoration:underline;
}
.wrapper .footer .footer_in .copyright
{
background: url(images/border.gif) no-repeat scroll right center transparent;
color: #FFFFFF;
float: left;
font: 1em "Calibri";
min-height: 94px;
padding-left: 14px;
padding-right: 30px;
padding-top: 35px;
}
.wrapper .footer .footer_in .copyright a
{
padding-bottom:5px;
color:#fff;
text-decoration:none;
}
.wrapper .footer .footer_in .copyright a:hover
{
text-decoration:underline;
}
.wrapper .footer .footer_in .footer-add
{
text-align:center;
width:220px;
float:right;
margin-left:10px;
font: 1em "Calibri";
}
.wrapper .footer .footer_in .footer-add a
{
color:#fff;
background:url(images/link_for_scale-new_03.png) no-repeat bottom;
height:122px;
display:block;
}
Check your monitor resolution (By the CSS, my guess is that it is 1440x768).
Now do this math with every pixel value: ("Pixel Width Value"/1440)*100 and ("Pixel Height Value"/768)*100.
That is your value in %!
Some elements might not work properly, but it's a good way to start.
There are also other units that can work depending on the screen size
check one of them here.
However I think % might be the best for you to start out.

Can't get the menu bar to scale to screen size

I am trying to scale a menu bar according to screen size. I've tried float, #media etc. but it hasn't worked properly. Full screen on my 13' looks great. However, as soon as I scale it down, the menu bar shifts to the right, but the page elements are fine. Menu is at the bottom #navsite.
CSS
* {
margin:0;
padding:0;
}
html{
min-width:770px;
}
body{
background:white url(candy/background.png) 0 0 repeat;
text-align:center;
}
/*=====[ Set up container divs and add background tiles ]=====*/
#pageheadContainer,
#contentContainer,
#footContainer{
width:100%;
}
#pageheadContainer{
background:transparent url(candy/pageheadBackground.png) 0 100% repeat-x;
}
#contentContainer{
background:#F7F7F7 url(candy/contentBackground2.png) 50% 100% repeat-y;
float:left;
}
#footContainer{
background:transparent url(candy/footBackground.png) 0 0 repeat-x;
clear:both;
}
#pagehead,
#content,
#foot{
width:770px;
margin:0 auto;
position:relative;
text-align:left;
}
#pagehead{
height:130px;
}
#foot{
height:150px;
}
#pagehead{
background:transparent url(candy/pageheadBackground2.png) 0 100% no-repeat;
}
#content{
background:transparent url(candy/contentBackground.png) 0 0 no-repeat;
min-height:300px;
_height:300px;
}
#foot{
background:transparent url(candy/footBackground2.png) 100% 0 repeat-x;
}
#article{
width:450px;
float:left;
padding:40px 0 20px 0;
margin-left:25px;
}
#subContent{
display:inline;
width:180px;
float:left;
padding:25px 0 20px 0;
margin-left:30px;
color:#8B725A;
font-size:.9em;
}
#foot ul{
position:absolute;
top:45px;
}
#foot li{
list-style-type:none;
}
#foot #foot1{
width:200px;
position:absolute;
left:300px;
}
#foot #foot2{
width:200px;
position:absolute;
left:570px;
}
#foot #pageTop{
position:absolute;
left:482px;
top:-40px;
}
#foot #pageTop a{
display:block;
width:26px;
height:26px;
text-indent:-9999px;
text-decoration:none;
background:transparent url(candy/pageTop.png) 0 0 no-repeat;
float:left;
}
body{
font:normal 62.5%/1.8em Arial, Helvetica, sans-serif;
}
#content ul{
margin:0.8em 0 0.6em 1em;
padding-left:1em;
list-style-type:square;
}
ol{
margin:0.8em 0 0.6em 2em;
padding-left:1em;
list-style-type:lower-roman;
}
blockquote{
margin:0.8em 0 0.6em 1em;
padding-left:1em;
font-style:italic;
border-left:4px solid #E2D7CF;
}
img{
padding:2px;
border:1px solid #F2F2F2;
}
#content{
font-size:1.25em;
}
p{
margin:0.3em 0 0.6em 0;
}
a{
color:#9D6141;
font-weight:bold;
text-decoration:none;
}
a:hover{
background:#9D6141;
color:#FFE;
}
#article{
line-height:1.7em;
color:#635141;
}
h1,
h2,
h3,
h4{
font-family:Georgia, Times New Roman, Times, serif;
}
h2{
color:#98533B;
margin-bottom:.5em;
line-height:1.7em;
font-size:1.7em;
}
h3{
margin:0.8em 0 0.6em 0;
font-size:1.3em;
}
h4{
margin:0.8em 0 0.6em 0;
font-size:1.1em;
}
#subContent h2{
font-size:1.3em;
}
#subContent h3{
font-size:1.1em;
}
/* menu navigation */
.navsite {width: 845px; height: 35px; z-index: 100;
margin-bottom: 3px; margin-left: 155px;}
/* menu bar */
#headermenu {width: 800px; height: 35px; z-index: 100; position: absolute}
#headermenu ul {
text-align: center;
list-style: none;
line-height: 20px;
font-size: small;
}
#headermenu a {
display: block;
width: 8em;
color: white;
text-decoration: none;
padding: 0.3em;
white-space: nowrap;
}
#headermenu li {
float: left;
padding: 0;
width: 8em;
background-color: #B67357; /* medium brown */
}
#headermenu li ul { /* second level lists */
position: absolute;
z-index:500;
left: -999em;
height: auto;
width: 8em;
border-width: 0.25em;
margin: 0;
}
#headermenu li:hover ul, #nav li.shfhover ul {
left: auto;
z-index:100;
}
#content {
clear: left;
color: #ccc;
}
#media screen and (max-width: 770px)
{
#headermenu {
width:770px;
margin:0 auto;
position:relative;
text-align:left;}
}
So your problem is you're absolutely positioning the menu from the left of the browser. So when you resize it it moves.
If you want the whole site to be centered but fluid you can use the following
width:100%; max-width:400px; margin:auto;
Here's a Fiddle

fixed menubar css on zoom in and out

menu in webpage when zoomed in and out doesnt stay fixed to header image shown in figure:
the css script for this one is as follows
#navmenu{
z-index:99999;
margin-top:40px;
position:absolute;
width:100%;
margin:0;
padding:0;
min-width: 90%;
width:950px;
}
#navMenu li {
float:left;
color:#ececec;
list-style-type:none;
width:80px;
}
#navMenu ul {
width:970px;
font-size:16px;
color:#000000;
}
#navMenu li a{
height:15px;
float:left; display:inline;
font-weight:700;
float:left;
color:#707070;
display: block;
padding: 8px 12px;
text-decoration: none;display: block;
padding: 8px 12px;
text-decoration: none;
background-image: url(img/image_menubutton.JPG);
border-right:1px solid white;
margin-right:12px;
font-family:"Georgia",Georgia,Serif;
font-weight:900;
font-size:19px;
text-align: center;
zoom: 1;
max-width: 30%;
}
#navmenu li.item1{background-image: url(img/about.JPG);}
#navmenu li a:hover {
color:33CCFF;
}
what is the solution to this?
if you use position:fixed; then it will not move when scrolled which is what i assume you are looking for, also when zoomed same thing, it will stay position fixed to where you want it , add maybe top:0; left:0; depending on where you want this to be positioned at-- maybe try adding some html ? other than that this is about all i can help you with
#navmenu{
z-index:99999;
margin-top:40px;
position:fixed;
width:100%;
top:0;
left:0;
margin:0;
padding:0;
min-width: 90%;
width:950px;
}
#navMenu li {
color:#ececec;
list-style-type:none;
width:80px;
}
#navMenu ul {
width:970px;
top:0;
left:0;
font-size:16px;
color:#000000;
}
#navMenu li a{
position:fixed;
height:15px;
font-weight:700;
float:left;
color:#707070;
display: block;
padding: 8px 12px;
text-decoration: none;
background-image: url(img/image_menubutton.JPG);
border-right:1px solid white;
margin-right:12px;
font-family:"Georgia",Georgia,Serif;
font-size:19px;
text-align: center;
zoom: 1;
max-width: 30%;
}

Resources