The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS A little CSS float help? [Background Line]

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #40246

    Hello. I am trying to create a title that can be dynamic in the CMS I am using. I will be posting a link to the image below:

    [Link to Image]( “Link to image”)

    Basically, what I am trying to do is have a fluid title, with lines on either side of the title. So, if the title grows or shrinks, I need the double lines to adjust according to where the left and right margins of the title are. The title will be centered within the lines, and the lines are floating to the left and right of the title.

    Is this possible to do with only CSS?



    I’m sure this has come up before on the fact, I know it has.

    Here’s a couple: <---probably the best



    Thanks so much. This is exactly what I needed. I am not so familiar with Pseudo Elements, so just being turned onto the :before and :after is a life saver. I am going to have to expand my CSS knowledge outside of my comfort zone.

    Thanks again! This is a resolved issue.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.