Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

CSS design querie

Hi all,

I was wondering if anyone can give me advise on creating boxes with image borders. I'm looking to do something similar to this: http://www.gamesitetemplates.com/space-war-game-ui-template.html

Also I was wondering if anyone had advise on how to create a sort of sci-fi feel with semi translucent elements such as this: https://creativemarket.com/dannehr/163951-Orbit-SciFi-UI-Kit

Any advise is greatly appreciated.

2 Answers

borderimg {

    -webkit-border-image: url(border.png) 30 round; /* Safari 3.1-5 */
    -o-border-image: url(border.png) 30 round; /* Opera 11-12.1 */
    border-image: url(border.png) 30 round;
}

is this what you mean by your first question? this adds a border with a background (source: W3Schools)

to have semi transparent elements use rgba values in css background color: for example background-color: rgba(40, 30, 20, 0.5); this will give 40 red, 30 green, 20 blue and 50% transparency.

Thanks I'll try these see i can make it work