10 Mar 2006 at 11:17 #1 axer axer Soldato Joined 25 Mar 2004 Posts 2,885 Location Iwade, Kent Hey Chaps, Im trying to centre an image on my website using the following: Code: <span align=center><img src="blah.jpg"></span> It isn’t working though, can anyone see any obvious mistakes with that?
Hey Chaps, Im trying to centre an image on my website using the following: Code: <span align=center><img src="blah.jpg"></span> It isn’t working though, can anyone see any obvious mistakes with that?
10 Mar 2006 at 11:26 #2 Adz Adz Soldato Joined 18 Oct 2002 Posts 10,277 Location Berkshire Span is an inline element, what you want to do is put your image within a div and set text-align:center on that .
Span is an inline element, what you want to do is put your image within a div and set text-align:center on that .
10 Mar 2006 at 11:31 #3 Beansprout Beansprout Man of Honour Joined 31 Jan 2004 Posts 16,338 Location Plymouth <span> is a tag with no real meaning, used inline - so, for example, if you want to apply styles to text in a paragraph: Code: <p>Hello, what a nice day. The grass is <span style="color:green">green</span>.</p> Last edited: 10 Mar 2006
<span> is a tag with no real meaning, used inline - so, for example, if you want to apply styles to text in a paragraph: Code: <p>Hello, what a nice day. The grass is <span style="color:green">green</span>.</p>
10 Mar 2006 at 11:52 #4 D4VE D4VE Soldato Joined 23 Oct 2003 Posts 8,899 Location Hampshire, UK just align the img tag centrally