Jump to content

[SOLVED] phpBB rounded corners


Mr.Shawn

Recommended Posts

I wanted to use the phpBB rounded corners for my personal site but I couldn't get it to work. I assume I had got all the css elements.

 

Anyone have the solution on how to make the phpbb css version of rounded corners to work?

span.corners-top {
background-image: url("corners_left.png");
}

span.corners-top span {
background-image: url("corners_right.png");
}

span.corners-bottom {
background-image: url("corners_left.png");
}

span.corners-bottom span {
background-image: url("corners_right.png");
}
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {
font-size: 1px;
line-height: 1px;
display: block;
height: 5px;
background-repeat: no-repeat;
}

span.corners-top {
background-image: none;
background-position: 0 0;
margin: 0 -5px;
}

span.corners-top span {
background-image: none;
background-position: 100% 0;
}

span.corners-bottom {
background-image: none;
background-position: 0 100%;
margin: 0 -5px;
clear: both;
}

span.corners-bottom span {
background-image: none;
background-position: 100% 100%;
}

 

And the html

 

<div id="test">

<span class="corners-top"><span></span></span>

<div>test</div>

<span class="corners-bottom"><span></span></span>

</div>

Link to comment
Share on other sites

Your problem may lie here:

 

span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {
font-size: 1px;
line-height: 1px;
display: block;
height: 5px;
background-repeat: no-repeat;
}

 

You didn't set a width, so I'm suspecting that they have a width of zero rendering them invisible.

 

If its not that, post a link.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.