Forums

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

Home Forums CSS Border wont show in other browsers.

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43175
    Anonymous
    Inactive

    I have a border inside the iframe page and it displays perfectly in Chrome and Safari. But it wont display properly in Firefox or Opera. Does it have something to do with the doctype?
    [ website.](http://reallycoolstuff.net/PROJECTS/JV/ “”)

    #127113
    Alen
    Participant

    Show us the CSS code you are using for border?

    #127117
    Anonymous
    Inactive

    @AlenAbdula

    body
    {
    background-color:#1e1e1e;
    overflow:hidden;
    font-family:sans-serif;
    background-image:url(‘images/framebackground.png’);
    border:dotted 2px #000000;
    box-shadow:inset 0px 0px 10px black;

    Better yet here’s a pen [pen](http://codepen.io/Jarolin/pen/bwLJs “”)

    #127120
    Alen
    Participant

    I’m guessing it’s because you are using iframes. As there are inconsistencies between browsers. Here are some [thoughts on iframes on StackOverflow](http://stackoverflow.com/questions/755795/are-iframes-html-obsolete).

    #127121

    Try using a fixed height of 428px for the body in the css for your iframe.

    #127133
    Anonymous
    Inactive

    @eatyourbrians didn’t work.

    #127183
    Anonymous
    Inactive

    @CrocoDillon Thanks bro. I gave the body a height of 420px and it works.


    @eatyourbrians
    You actually mentioned that first but for some reason i didn’t try it. Thanks to you too.

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