By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,255 Members | 2,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,255 IT Pros & Developers. It's quick & easy.

CSS Centering, layer problems and more general problems

P: 10
Hello all, I posted a thread a while ago and was told to include the code so here it is.

I still dont really get CSS, everything I have done has been blagged because I cant be bothered to read books to help me understand whats really going on.

I would a few more containers within my centered text box in the middle so I dont have to press spacebar to get where I would like it, but have had trouble.
I recon im doing a lot wrong so please help! I'm making this for my dad and he's switching now because its been about 3 months haha.
Thanks Nick.

(Image of my site and where some of the problems are)

IMAGE OF SITE


(And popping the bonnet heres the technical side)


<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Photronics</title>
<style type="text/css">
<!--
#container {
width: auto;
margin-left: auto;
left: auto;
right: auto;
}
#container {
width: 720px;
margin-right: auto;
margin-left: auto;
}
html {
background-image: url(CSS.jpg);
background-position: center;
}
.style21 {font-size: 18px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.style22 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.style30 {
font-size: 16px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('buttons final/plain on.gif')">
<div id="container">
<div align="center">
<p align="left"><img src="small-photronics.gif" width="245" height="87" /></p>
<p><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','buttons final/plain on.gif',1)"><img src="buttons final/plain off.gif" name="Image2" width="118" height="30" border="0" id="Image2" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','buttons final/plain on.gif',1)"><img src="buttons final/plain off.gif" name="Image21" width="118" height="30" border="0" id="Image21" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image22','','buttons final/plain on.gif',1)"><img src="buttons final/plain off.gif" name="Image22" width="118" height="30" border="0" id="Image22" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image23','','buttons final/plain on.gif',1)"><img src="buttons final/plain off.gif" name="Image23" width="118" height="30" border="0" id="Image23" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image24','','buttons final/plain on.gif',1)"><img src="buttons final/plain off.gif" name="Image24" width="118" height="30" border="0" id="Image24" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image25','','buttons final/plain on.gif',1)"><img src="buttons final/plain off.gif" name="Image25" width="118" height="30" border="0" id="Image25" /></a></p>
<p align="left">&nbsp;</p>
<p align="left" class="style18 style30">Text goes here</p>
<p align="left" class="style18 style30">&nbsp;</p>
<p align="left" class="style18 style30">&nbsp;</p>
<p align="left" class="style18 style30">&nbsp;</p>
<p align="left" class="style18 style30">&nbsp;</p>
<p align="left" class="style18 style30">&nbsp;</p>
<p align="left" class="style18 style30">&nbsp;</p>
<p align="left" class="style18 style30">&nbsp; </p>
</div>
<p class="style21">&nbsp;</p>
<p class="style21">&nbsp;</p>
<p class="style21">&nbsp;</p>
<p class="style21">&nbsp;</p>
<p class="style21">&nbsp;</p>
<p class="style21">&nbsp;</p>
<p align="center" class="style22">&nbsp;</p>
</div>
</div>
</body>
</html>
Oct 30 '06 #1
Share this Question
Share on Google+
2 Replies


drhowarddrfine
Expert 5K+
P: 7,435
Unfortunately, with that many images, it's difficult to duplicate and solve the problem. Can you put this online?
Oct 30 '06 #2

P: 10
Thats also a good question, how do you upload webpages?
Oct 31 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.