Dear All,
I am trying to resize a page using jQuery but its not working for whole page it just resizes itself rather then whole content of website, anyone can please help me. Here is the code that I am using
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head runat="server">
<title>London Ships</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
font-family: Arial, Helvetica, Verdana, Sans-Serif;
font-size: 100%;
}
body.small {
font-size: 80%;
}
body.medium {
font-size: 120%;
}
body.large {
font-size: 140%;
}
.font-resizing {
list-style: none;
padding: 0;
margin: 0;
}
.font-resizing a {
font-weight:bold;
text-decoration:none;
text-transform:uppercase;
}
a.small {
font-size: 1em;
}
a.medium {
font-size: 1.2em;
}
a.large {
font-size: 1.4em;
}
.font-resizing li {
display: inline;
}
.style1
{
/*float: right;*/
height: 40px; /*width: 550px;*/
width: 100%;
text-align: justify;
}
.style2
{
border-width: thin;
height: 147px; /*width: 1024px;*/ /*width: 800px;*/
width: 100%;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://www.frederikvig.com/wp-content/uploads/fontresizing-print-plugin/jquery.fontresizing.js" type="text/javascript"></script>
<script src="http://www.frederikvig.com/wp-content/uploads/fontresizing-print-plugin/jquery.print.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(function($) {
$('#tools>li:first').fontresizing();
$(".container:first").fontresizing();
$('#tools>li:eq(1)').print({
printText: 'Print this page'
});
});
</script>
<div class = "container" align="Center">
<div class = "sitenav">
<ul id="tools">
<li></li>
<li></li>
</ul>
</div>
<div class = "header">
<img src="Images/LOGOFINAL.png"
style="height: 147px; width: 100%; text-align: justify;" align="middle" />
</div>
<div class ="style1"
style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; font-variant: normal; color: #808080;"
align="center">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Learning</a>
<a href="#">Partner Ships</a>
<a href="#">Events</a>
<a href="#">Contact Us</a>
</div>
<div class = "contentpage">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
<div class = "footer" align="center">
<div id="altnav">
<a href="#">About</a> -
<a href="#">Website Credits</a> -
</div>
Copyright © London Ships
<a href="http://www.cms.gre.ac.uk/">University Of Greenwich CMS School</a> and
<a href="http://www.gre.ac.uk/">University Of Greenwich</a>
<br />
<img align="middle" alt="" src="Images/footerline.png"
style="width: 795px; height: 25px" /></div>
</div>
</form>
</body>
</html>
This only resizes Three A's I have in sitenav and doesn't do anything. Any ideas I am stuck on this from last three days. or If any one have anyother simple idea please post it here.
Thanks in advance.