This is an odd one … I need to display a graphic always that’s always centred in the browser. Easy.
But the catch is that this graphic is part of some branding… and the branding demands that a line within the graphic continuously extend to the right for the duration of the browser width.
Example:
|———[Logo]]]]]]]]]|
I thought I’d be able to center a DIV, create a UL and then just float the LI to the left … but the issue becomes that because of the parent DIV width, the LI gets pushed down to the next line and I’m not sure how to stop that…
Position the graphic whatever way you like and stick a div behind it with a top border on for the line. Position it absolutely and set the left:0 and right:50%.
Like so: (try resizing the browser window)