![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
| http://www.westmidlandbirdclub.com/club/logo.htm has a logo "floated" in the top left, and another "floated" in the top right, with the H1 heading centred between them (and this centred on the page). I would like to only have the logo top left, but retain the centering of the heading, on the page. How is this best achieved? |
#2
| |||
| |||
|
|
float takes the item of the normal document flow, so it will not affect margins set on the h1. Thus, h1 {margin-left: auto; margin-right: auto} float the image left as before. Compare the common centring of the H1 ("West Midland Bird Club"), H2 ("New Logo") and the large graphic on: http://www.westmidlandbirdclub.com/club/logo.htm (which has two logos, top left and right http://www.westmidlandbirdclub.com/club/test.htm which has one. |
#3
| |||
| |||
|
|
In message <EpVPa.44171$H17.13526@sccrnsc02>, Brian brian (AT) wfcr (DOT) org.invalid-remove-this-part> writes http://www.westmidlandbirdclub.com/club/logo.htm has a logo "floated" in the top left, and another "floated" in the top right, with the H1 heading centred between them (and this centred on the page). I would like to only have the logo top left, but retain the centering of the heading, on the page. How is this best achieved? float takes the item of the normal document flow, so it will not affect margins set on the h1. Thus, h1 {margin-left: auto; margin-right: auto} float the image left as before. Thank you, but that doesn't seem to work. |
#4
| |||
| |||
|
|
In message <bH5Qa.48527$Ph3.3769@sccrnsc04>, Brian brian (AT) wfcr (DOT) org.invalid-remove-this-part> writes Compare the common centring of the H1 ("West Midland Bird Club"), H2 ("New Logo") and the large graphic on: http://www.westmidlandbirdclub.com/club/logo.htm (which has two logos, top left and right http://www.westmidlandbirdclub.com/club/test.htm which has one. Both have css errors. Fixed, thank you. Does fixing them solve anything? No :-( |
#5
| |||
| |||
|
|
And now for the tacky solution. Do everything as you have and use a transparent gif of the appropriate size on the right hand side :-) |
#6
| |||
| |||
|
|
In message <3f1460c7$1 (AT) news (DOT) sihope.com>, kchayka kcha-ns-yka (AT) sihope (DOT) com> writes Why not just set right margin or padding instead? for example..? |
![]() |
| Thread Tools | |
| Display Modes | |
| |