Forums

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

Home Forums CSS [Solved] Why is the border so long

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #171856
    geedi
    Participant

    this is my code nice and simple
    border-color: #000000;
    border-style: groove;
    border-width:5px;
    but look it is supposed to wrap itself around a youtube player but it wraps it self around paragraph < P >

    see http://jort.persistest.nl/ for refrence why o why wont it work

    #171860
    Paulie_D
    Member

    If you mean

    .video-responsive {
    border-color: #000000;
    border-style: groove;
    border-width: 5px;
    }
    

    It looks like it’s working fine.

    The youtube video is an iframe

    if you want the border around just the iframe you would have to apply it to the iframe

    .video-responsive iframe {
    border-color: #000000;
    border-style: groove;
    border-width: 5px;
    }
    

    OR

    just collapse the div using display:inline-block and it will wrap itself around the contents.

    .video-responsive {
    border-color: #000000;
    border-style: groove;
    border-width: 5px;
    display: inline-block;
    }
    
    #171863
    geedi
    Participant

    pauly d u are a genius and how could i have over look that damnn so basicly what i am trying to say is thanks mate u helped me out good

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