[SOLVED] image to centre page

This is a discussion on "[SOLVED] image to centre page" within the Web Page Design section. This forum, and the thread "[SOLVED] image to centre page are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 22nd, 2007, 10:38
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] image to centre page

Good Morning,

I am using the code below and cant get the popup image to centre can anyone assit me please.

Cheers

DAniel


HTML: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
 
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
                          <div id="nav">
<dd><a href="newbuild.htm"><img src="newbuildbutton.gif" width="75" height="25" border="0" ><span><img src="newbuild.gif" width="369" height="223" border="1"></span></a><a href="briefings.htm"><img src="briefingsbutton.gif" width="70" height="25" border="0" ><span><img src="briefs.gif" width="369" height="223" border="1"></span></a><a href="orders.htm">Orders<span><img src="orders.gif" width="369" height="223" border="1"></span></a><a href="faqs.htm">FAQs<span><img src="faqs.gif" width="369" height="223" border="1"></span></a><a href="localinfo.htm">Local
    Information<span><img src="localinfo.gif" width="369" height="223" border="1"></span></a></dd>
</div>
 
 
        <style>
        
#nav {
  width: 600px;
position:relative;
  
float: none;
 margin-right: auto;
 margin-left: auto;
} 
#nav a{
margin-right: 5px;
 margin-left: 5px;
 }
 
   
#nav a span {display: none;}
#nav a:hover span {
display: block;
position: absolute; 
left:25%;
right:25%;
top:-235px;
color:#000000;
width:auto;
text-align:left;
font-weight: bold;
}
#nav a:hover {
background:#ffffff;
}   
   
 
   
</style>
 

Last edited by R8515198; Nov 22nd, 2007 at 12:54.
Reply With Quote

  #2 (permalink)  
Old Nov 22nd, 2007, 10:49
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image to centre page

It would be much easier to help you if you posted a link. It helps to see what you're trying to do.

Your code is rather...um...bizarre. I can't fathom why you would put a <table> inside a <dl>.
Reply With Quote
  #3 (permalink)  
Old Nov 22nd, 2007, 11:02
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image to centre page

My brain has frozen and I couldnt remember how to get them next to each other so I put them in a table??

Bad drills help me change it please it wasn't inline or block?

I am work so unable to do a link but if you put all the code above in to one html file you will see what i am trying to do.

Time spent on this matter is greatly appreciated
Reply With Quote
  #4 (permalink)  
Old Nov 22nd, 2007, 12:10
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image to centre page

Apologies have corrcet code.

How do I get the image that pops up to be centered?
Reply With Quote
  #5 (permalink)  
Old Nov 22nd, 2007, 12:56
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image to centre page

I have correceted it, you just have to spent some time away from the screen and clear your head. I have applied the correct coding above

cheers
Reply With Quote
  #6 (permalink)  
Old Nov 22nd, 2007, 13:29
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image to centre page

Quote:
Originally Posted by R8515198 View Post
I am work so unable to do a link but if you put all the code above in to one html file you will see what i am trying to do.
I am lazy and much prefer to follow a link. It takes less time. Sorry.
Reply With Quote
  #7 (permalink)  
Old Nov 23rd, 2007, 04:11
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: [SOLVED] image to centre page

I have tried to put the code into an html document, but it won't do any good since I don't have the full image path.
Oh, oops! You've already solved it... Never mind
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] multiple image rollover not restoring image snappy JavaScript Forum 4 Nov 5th, 2007 14:38
[SOLVED] Centering an image with CSS without moving anything else on the page. Ed Web Page Design 5 Oct 29th, 2007 11:34
Web Design Centre centamtom Free Web Site Critique 7 May 12th, 2007 20:30
Centre the page ? Accurax Web Page Design 5 Oct 10th, 2006 14:05
css to centre flash onlinegamesplayer Web Page Design 6 May 15th, 2006 09:40


All times are GMT. The time now is 03:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43