image problem

This is a discussion on "image problem" within the Web Page Design section. This forum, and the thread "image problem 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 Aug 24th, 2007, 11:00
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
image problem

hey i have an image in my site and i want to center it but i cant do it what is the right tag to center a image please help???
Reply With Quote

  #2 (permalink)  
Old Aug 24th, 2007, 11:36
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

You'll have to give us more to go on.

Is this image within the content? Like a logo? Or is this an image that could be put in as a background?

A link to what you have and a better explanation of what you are trying to achieve will get you more responses.
Reply With Quote
  #3 (permalink)  
Old Aug 24th, 2007, 11:48
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

ok sorry i ahve no link the image is a gif i don't want it as a background just on a page the image is form a print screen sys rq
Reply With Quote
  #4 (permalink)  
Old Aug 24th, 2007, 12:00
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

are you using CSS, Tables or what, are you trying to centre it to the centre of a page,column left,right. Some code might be useful.
Reply With Quote
  #5 (permalink)  
Old Aug 24th, 2007, 12:19
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

yeah css for the layout and html for the design. yeag i want to center it to a center column.

here is the code


Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html><head><title>[KWG]. Kids With Guns</title>

<style type="text/css">
    @import url(all.css);
    
    body {
        margin:10px 10px 0 10px;
        padding: 0;
        background-color: #66CCFF;
}
    #header {
        background:#FFF url(nfbanner.gif) no-repeat center top;
        padding-top:150px;
        border:1px solid #E0E0E0;
        border-bottom:0;
        
}
    
    #leftcontent {
        position: absolute;
        left:10px;
        top:181px;
        width:192px;
        background:#E0E0E0;
        border:1px solid #E0E0E0;
        }

    #centercontent {
        background:#E0E0E0;
           margin-left: 199px;
           margin-right:199px;
        border:1px solid #E0E0E0;
    
        voice-family: "\"}\"";
        voice-family: inherit;
           margin-left: 201px;
           margin-right:201px;
        }
    html>body #centercontent {
           margin-left: 201px;
           margin-right:201px;
        }

    #rightcontent {
        position: absolute;
        right:10px;
        top:181px;
        width:192px;
        background:#E0E0E0;
        border:1px solid #E0E0E0;
        }
    
    #banner {
        background:#fff url(nfbanner.gif);
        height:40px;
        border-top:1px solid #000;
        border-right:1px solid #000;
        border-left:1px solid #000;
        voice-family: "\"}\"";
        voice-family: inherit;
        height:39px;
        }
    html>body #banner {
        height:39px;
        }
        
    p,h1,pre {
        margin:0px 10px 10px 10px;
        }
        
    h1 {
        font-size:14px;
        padding-top:10px;
        }
        
    #banner h1 {
        font-size:14px;
        padding:10px 10px 0px 10px;
        margin:0px;
        }
        
    
    #rightcontent p {
        font-size:14px
        }
    
</style>


<body>

<div id="header">
  <a href="#">Home</a> | <a href="#">GuestBook</a> | <a href="#">Blog</a> | <a href="#">Forum</a> | <a href="#">Links</a> | <a href="#">Clan Members</a> | <a href="#">Downloads</a> | <a href="#">Enemies and Allies</a> | <a href="#">Rules</a> | <a href="#">Chat Room</a> |
</div>

<div id="leftcontent">
    <h3>Scrims</h3>
    <p>Scrim Results</p>
    <p>Organize to scrim with [KWG].<p>
</div>

<div id="centercontent">
    <BR>
    <img src="kwg shots.gif" />
    <BR>
    <BR>
    
    
<h3 style="width: 100%; padding-botton: 10px; border-bottom: solid black 1px;" ><font color="#FF9900">Welcome</font></h3>
    
<p> Hey and welcome to [KWG]. nightfire clan site please enjoy the site.
Our clan is new  and we hope to be successful so can all members please follow all rules we have and enjoy being in our clan.
[KWG]. Clan leaders are Jewou and SniperElite so if you have any problems please speak to them :) </p>

<h3 style="width: 100%; padding-botton: 10px; border-bottom: solid black 1px;" ><font color="#FF9900">News</font></h3>

<p> [KWG].Clan is now running try outs to recruit there members.
The try outs will take place in CTF_Romania.
Jewou will be organizing the try outs  so if you would  like  to join [KWG]. Please speak to Jewou in GSA, in game or post in our blog or forum to arrange a time for a try out with him. <p>


    
    
<div id="rightcontent">
    
    <h3 align="center">GSA</h3>
    <p></p>
    <h3>The Site<h3/>
    <p>This site was created by: [KWG]SniperElite{NC}<p>
    
</div>

</body>
</html>

Last edited by karinne; Aug 24th, 2007 at 12:19. Reason: Please use [ code ]...[ /code ] tags when displaying code.
Reply With Quote
  #6 (permalink)  
Old Aug 24th, 2007, 12:39
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

adding code to the image will center it:
Code: Select all
margin: 0 auto;
Reply With Quote
  #7 (permalink)  
Old Aug 24th, 2007, 12:47
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

ok thanks how do i add it in like where about to i put it in the image?
Reply With Quote
  #8 (permalink)  
Old Aug 24th, 2007, 12:57
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

This image is going to go into the center div? Is that correct?
Code: Select all
css
Code: Select all
.imagecenter {
margin: 0 auto;
}
See red below. Don't forget to close the center div. <div id="centercontent"> <BR> <img src="kwg shots.gif" class="imagecenter"/> <BR> <BR> <h3 style="width: 100%; padding-botton: 10px; border-bottom: solid black 1px;" ><font color="#FF9900">Welcome</font></h3> <p> Hey and welcome to [KWG]. nightfire clan site please enjoy the site. Our clan is new and we hope to be successful so can all members please follow all rules we have and enjoy being in our clan. [KWG]. Clan leaders are Jewou and SniperElite so if you have any problems please speak to them :) </p> <h3 style="width: 100%; padding-botton: 10px; border-bottom: solid black 1px;" ><font color="#FF9900">News</font></h3> <p> [KWG].Clan is now running try outs to recruit there members. The try outs will take place in CTF_Romania. Jewou will be organizing the try outs so if you would like to join [KWG]. Please speak to Jewou in GSA, in game or post in our blog or forum to arrange a time for a try out with him. <p> </div>
Reply With Quote
  #9 (permalink)  
Old Aug 24th, 2007, 13:03
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

ok where abouts do i need to put this code ?
.imagecenter {
margin: 0 auto;
}
Reply With Quote
  #10 (permalink)  
Old Aug 24th, 2007, 13:04
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

In your CSS ... you already have some in your document!
Reply With Quote
  #11 (permalink)  
Old Aug 24th, 2007, 13:06
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

but does it matter where about on the page???
Reply With Quote
  #12 (permalink)  
Old Aug 24th, 2007, 13:08
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

HTML: Select all
<h3 style="width: 100%; padding-botton: 10px;
you may want to change padding-botton to bottom in your h3 headings
Reply With Quote
  #13 (permalink)  
Old Aug 24th, 2007, 13:22
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

Quote:
Originally Posted by SniperElite View Post
but does it matter where about on the page???
Yes ... put it with the rest of your css

And PLEASE!!! Loose the <font> tags!
Reply With Quote
  #14 (permalink)  
Old Aug 24th, 2007, 14:11
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

when i take out the font tags the words on the right column go big.

ok i have added all that in and it still didn't center it

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html><head><title>[KWG]. Kids With Guns</title>

<style type="text/css">
    @import url(all.css);
    
    
    body {
        margin:10px 10px 0 10px;
        padding: 0;
        background-color: #66CCFF;
}
    #header {
        background:#FFF url(nfbanner.gif) no-repeat center top;
        padding-top:140px;
        border:1px solid #E0E0E0;
        border-bottom:0;
        
}
    
    #leftcontent {
        position: absolute;
        left:10px;
        top:189px;
        width:192px;
        background:#E0E0E0;
        border:1px solid #E0E0E0;
        }

    #centercontent {
        background:#E0E0E0;
           margin-left: 199px;
           margin-right:199px;
        border:1px solid #E0E0E0;
    
        voice-family: "\"}\"";
        voice-family: inherit;
           margin-left: 201px;
           margin-right:201px;
        }
    html>body #centercontent {
           margin-left: 201px;
           margin-right:201px;
        }

    #rightcontent {
        position: absolute;
        right:10px;
        top:189px;
        width:192px;
        background:#E0E0E0;
        border:1px solid #E0E0E0;
        }
    
    #banner {
        background:#fff url(nfbanner.gif);
        height:40px;
        border-top:1px solid #000;
        border-right:1px solid #000;
        border-left:1px solid #000;
        voice-family: "\"}\"";
        voice-family: inherit;
        height:39px;
        }
    html>body #banner {
        height:39px;
        }
        
    p,h1,pre {
        margin:0px 10px 10px 10px;
        }
        
    h1 {
        font-size:14px;
        padding-top:10px;
        }
        
    #banner h1 {
        font-size:14px;
        padding:10px 10px 0px 10px;
        margin:0px;
        }
        
    
    #rightcontent p {
        font-size:14px
        }
        
        .imagecenter {
margin: 0 auto;
}
    
</style>


<body>

<div id="header">
 <hr /><a href="#">Home</a> | <a href="#">GuestBook</a> | <a href="#">Blog</a> | <a href="#">Forum</a> | <a href="#">Links</a> | <a href="#">Clan Members</a> | <a href="#">Downloads</a> | <a href="#">Enemies and Allies</a> | <a href="#">Rules</a> | <a href="#">Chat Room</a> |
</div>

<div id="leftcontent">
    <h3>Scrims</h3>
    <p>Scrim Results</p>
    <p>Organize to scrim with [KWG].<p>
</div>

<div id="centercontent">
    <BR>
    <img src="kwg shots.gif" class="imagecenter"/>
    <BR>
    
    
<h3 style="width: 100%; padding-botton: 10px; border-bottom: solid black 1px;" ><font color="#FF9900">Welcome</font></h3>
    
<p> Hey and welcome to [KWG]. nightfire clan site please enjoy the site.
Our clan is new  and we hope to be successful so can all members please follow all rules we have and enjoy being in our clan.
[KWG]. Clan leaders are Jewou and SniperElite so if you have any problems please speak to them :) </p>

<h3 style="width: 100%; padding-botton: 10px; border-bottom: solid black 1px;" ><font color="#FF9900">News</font></h3>

<p> [KWG].Clan is now running try outs to recruit there members.
The try outs will take place in CTF_Romania.
Jewou will be organizing the try outs  so if you would  like  to join [KWG]. Please speak to Jewou in GSA, in game or post in our blog or forum to arrange a time for a try out with him. <p>

</div>
    
    
<div id="rightcontent">
    
    <h3 align="center">GSA</h3>
    <p></p>
    <h3>The Site<h3/>
    <p>This site was created by: [KWG]SniperElite{NC}<p>
    
</div>

</body>
</html>

Last edited by karinne; Aug 24th, 2007 at 14:23. Reason: Again ... Please use [ code ]...[ /code ] tags when displaying code!
Reply With Quote
  #15 (permalink)  
Old Aug 24th, 2007, 14:24
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

This why a link is better ... we need to see this in action with the images! Then we can play with it in Firebug and give a solution.

The are plenty of free hosting out there!

Last edited by karinne; Aug 24th, 2007 at 14:28.
Reply With Quote
  #16 (permalink)  
Old Aug 24th, 2007, 14:34
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

here http://i14.tinypic.com/62of8ma.jpg

its the pic in the center column.
Reply With Quote
  #17 (permalink)  
Old Aug 24th, 2007, 18:12
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

Can you upload the site to a free host? It's hard to help you without seeing it live.
Reply With Quote
  #18 (permalink)  
Old Aug 24th, 2007, 22:05
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

http://www.kwg-clan.6x.to/ here ya go
Reply With Quote
  #19 (permalink)  
Old Aug 24th, 2007, 22:22
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

I don't know.. I played with the code for about 10 minutes and I can't find anything obvious.
Reply With Quote
  #20 (permalink)  
Old Aug 24th, 2007, 22:30
Junior Member
Join Date: Aug 2007
Location: austrlia
Age: 17
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image problem

ok what should i do then???
Reply With Quote
Reply

Tags
help

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
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08
Image loader problem! monkeygraphik Flash & Multimedia Forum 9 Sep 6th, 2007 08:10
IE6 image preload problem glesig JavaScript Forum 2 Oct 30th, 2006 12:59
Problem with image in Mozilla ?? please help DavidinLondon JavaScript Forum 1 May 20th, 2006 16:03
Image problem in IE matelo Web Page Design 0 Jan 20th, 2006 18:39


All times are GMT. The time now is 02:34.


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