473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CSS Centering, layer problems and more general problems

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
2 1979
drhowarddrfine
7,435 Expert 4TB
Unfortunately, with that many images, it's difficult to duplicate and solve the problem. Can you put this online?
Oct 30 '06 #2
Thats also a good question, how do you upload webpages?
Oct 31 '06 #3

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

Similar topics

1
by: PAD | last post by:
I have written a javascript routine that populates a parent document with a series of <iframe>s. Each <iframe> receives its contents from a series of separate smaller HTML files. Of course my NN...
7
by: Erik Schulp | last post by:
Hi all, I am trying to get a CSS defined layout to center on the page, have tried doing this with the <center></center> tags but than everything is centered, including text etc etc. What...
10
by: Peter Altenberg | last post by:
is there some way to make the positioning of a layer (div) so that it is centered in the window. so even when you resize the window it stays centered? i would like to do this with CSS just like you...
2
by: kevinC | last post by:
Hello, I know most of you are probably going seeing positioning:absolute; and centering in the title and saying, oh no! not again! Do a google search! Actually, I've found many helpful...
6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
2
by: anonymous | last post by:
I have created a DataGrid control with checkboxes, TextBoxes, ComboBoxes, and NumericUpDowns. Since I used the DataGridBoolColumn, the checkbox is displayed in the center of the cell, horizontally...
8
by: Jon Maz | last post by:
Hi, I'm facing a code-optimisation issue on an asp.net/vb.net/SQL Server 2000 project. A web page containing not much more than 3 DropDownLists is taking nigh on 6 seconds to load, because each...
5
by: Markus Ernst | last post by:
Hello This is a test example: http://www.markusernst.ch/anthracite/ http://www.markusernst.ch/anthracite/living_divani.html After googling and experimenting for several hours, I ended up...
0
by: drawing in aspnet | last post by:
Question about putting the data layer in a separate class library. I keep reading that the data layer should be separated from the presentation layer and put in its own class library. I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.