Forums

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

Home Forums CSS CSS to insert a solid line between two lines of copy?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #244055
    blackbird7
    Participant

    This may be easy to do but I’m not sure how, but I’d like to set this up using CSS rather than an image. In the footer of the site there is a header above each location (west, east and south).

    They are set up like this

    W———————————-LOS ANGELES.

    (I can attach an image as well, just dont see where to do it here)

    Does anyone know the best way to accomplish this with CSS so it can be responsive?

    Thank you

    #244056
    Beverleyh
    Participant

    Not sure what you’re describing but give it a go in CodePen and we can offer pointers.

    That being said and offering a few pointers from the off, percentages would be a good way to work (no fixed units of measure) so that the line-length fluidly changes as the screen width does, and I imagine that the joining line could be a pseudo element?

    #244057
    Paulie_D
    Member

    (I can attach an image as well, just dont see where to do it here)

    Just host it somewhere and then just link it like you would any image in your post

    <img src="your http link" />

    Like this

    #244058
    Paulie_D
    Member

    I see you’ve asked this on Stack Overflow as well.

    http://stackoverflow.com/questions/38668893/css-to-insert-a-solid-line-between-two-lines-of-copy

    As with there…we need to see the current HTML structure.

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