![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like to centre an image above my vertical naviagation bar, what is the best way to do it? |
#3
| |||
| |||
|
|
I would like to centre an image above my vertical naviagation bar, what is the best way to do it? |
#4
| |||
| |||
|
|
Pengey wrote: I would like to centre an image above my vertical naviagation bar, what is the best way to do it? Use css to format your image alignment. Give it a class name (eg: logo) and use this code on your css file: img.logo { margin: 0 auto; } I agree with Murray. Show your code first and describe your problem. Hope this helps. -- Burman - AKA dreamworms Web Design Tutorial: http://www.burmanweb.com |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
That will not work on any inline tag, including images. For it to work the class rule would also have to contain "display:block", and the image would have to have an explicit width assigned (either in the CSS or in the width attribute). Rather than confuse the OP with suggestions that are wrong, I suggest we take a look at the code first. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Murray *ACE* wrote: That will not work on any inline tag, including images. For it to work the class rule would also have to contain "display:block", and the image would have to have an explicit width assigned (either in the CSS or in the width attribute). Rather than confuse the OP with suggestions that are wrong, I suggest we take a look at the code first. Why using display:block? isn't image is also block level element? Don't make us confuse here. -- Burman - AKA dreamworms Web Design Tutorial: http://www.burmanweb.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |