76 users online (1 members and 75 guests)  


  Results 1 to 6 of 6

Related

  1. One pixel off in IE - center div    Forum: CSS Forum
    Replies: 1
  2. Frame center    Forum: HTML Forum
    Replies: 5
  3. need help wit google message-your browser doen not support browser    Forum: Search Engine Optimization - SEO - Forum
    Replies: 4
  4. Replies: 1
  1. #1
    lostplanet's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2004
    Posts
    8

    center webpage in browser always

    exactly that, my site always sticks to the left of the browser how can i make the site appear in the center of the browser window no matter what size screen/resolution it is displayed on?


    frontpage 2003

    www.villadessanelle.co.uk

    thanks

    jason

  2. #2
    lostplanet's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2004
    Posts
    8

    Re: center webpage in browser always

    ok a friend that knows more than me said redo the page specifying that the first table be centered which works.

    but i now have another problem...please ignore villadessanelle for the time being.

    www.pcseltd.co.uk/aboutuswrong.htm

    as you can see here the text and picture that is out of place (not centered) is in a layer. i want to add more layers (allows me to edit and place pictures nicely)but none of the layers stay centered in realtion to the center blue table when i design the page.

    how do i make layers stay central or in line with the tables?

    Code:
    <!doctype html>
    
    <head>
    <meta http-equiv="Content-Language" content="en-gb">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>PCSELTD.co.uk</title>
    </head>
    
    <body bgcolor="#666666" style="text-align: center">
    
    <table border="1" width="800" bgcolor="#6699FF" height="194">
    	<tr>
    		<td>
    		<p align="center">&nbsp;</p>
    		<table border="1" width="100%">
    			<tr>
    				<td>
    				<p align="center"><u><b>
    				<font size="7" face="Arial" color="#808080">PC Surveying &amp; 
    				Engineering</font></b></u></p>
    				<p>&nbsp;</td>
    			</tr>
    		</table>
    		<div align="center">
    			<table border="1" width="53%" height="134">
    				<tr>
    					<td>
    					<p align="center"><b>
    					<font color="#666666" face="Arial" size="6">Complete <br>Survey and Drawing 
    					<br>Service</font></b></td>
    				</tr>
    			</table>
    		</div>
    		<div style="position: absolute; width: 232px; height: 401px; z-index: 1; left: 263px; top: 307px" id="layer1">
    			<p align="center"><font size="4" face="Arial">PC Surveying and 
    				Engineering have the specialist skills to undertake surveys for 
    				all types of ground-works ranging from simple schemes to 
    				complex, large scale infrastructures.</font></p>
    			<p align="center"><font face="Arial" size="4">We carry out major 
    				and minor surveys throughout Great Britain mainy for Local 
    				Authorities, Contractors and Developers.</font></p>
    			<p align="center"><font face="Arial" size="4">We operate with 
    				fully trained quality staff and guarantee a high quality of 
    				service. </font>
    			<p>&nbsp;</div>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<div style="position: absolute; width: 414px; height: 405px; z-index: 2; left: 564px; top: 302px" id="layer2">
    			<img border="0" src="building%20crop.jpg" width="440" height="504" align="left"></div>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</p>
    		<p align="center">&nbsp;</td>
    	</tr>
    </table>
    
    </body>
    
    </html>
    in preview it works /looks fine but as soon as i open in IE7 it looks wrong or as above..
    Last edited by vinyl-junkie; 10-04-2007 at 06:18 AM. Reason: added code (original poster); Moderator: added code tags

  3. #3
    lostplanet's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2004
    Posts
    8

    Re: center webpage in browser always

    changed website

    www.pcseltd.co.uk/aboutus.htm

  4. #4
    lostplanet's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2004
    Posts
    8

    Re: center webpage in browser always

    thanks for puuting the code in tags ,

    need to mention,
    i seem to be having more trouble when the site is displayed on a widescreen monitor. i looked at it on my normal 19 inch and it doesnt look too bad.

  5. #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: center webpage in browser always

    Are you still having problems? It looks fine here.

    D
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  6. #6
    mandar-seo's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2006
    Location
    Pune, India
    Posts
    16

    Re: center webpage in browser always

    LotsPlanet has given it correctly. Just follow his instructions and you will be able to align your webpage centrally.



Tags for this Thread