Forum Moderators: not2easy
My problem is that the code I'm getting from XML has no title, so my initial solution was to add the heading in the background image with the help of CSS. It looks fine, but ideally it must be text.
The div has been set to
height: auto; to ensure it expands according to the content it contains. The background image curves at the bottom so background-position is set to "bottom". So if the content inside the div is only a few lines in height, the top title embedded in the background image will not be displayed. The top title and bottom curve will only be seen if the content height is equal to (or > than) the height of the background image. Example code of background used in CSS:
background: url(blah.gif) #fff 0% 100% no-repeat; It's easy to solve if the title is embedded in the image - just create a seperate div for bottom bg image - but how can I display text in CSS? Should be an easy fix if possible.
Let me know if this is unclear. Thanks.