Forums

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

Home Forums CSS Basic CSS issues

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39319
    psycorpse
    Member

    I am having an issue with content not staying in the within its div constraints. Any help would be appreciated.

    Here is a link to my codepen
    CodePen Link

    I have a couple of text boxes and a Span that I basically turned into a button. If you put in text in the Tags textbox and click the tag button, javascript will add a span with the value of the text box. I was anticipating the spans to wrap inside the 600px container when it reached the border. Instead, the spans just keep on growing outside of the constraints. Can can test this on codepen.

    Again any help would be appreciated.

    Mike

    #107710
    Senff
    Participant

    Interesting issue, I must say!

    I’m not sure why it happens to be honest, only how it can be solved (give div#tag_lost overflow:hidden; and give the spans in it float:left;). Although that’s more of a workaround than a solution… :-/

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