Jump to content

Colturi Rotunjite In Css


gaby

Recommended Posts

Pentru a crea colturi rotunjite cel mai simplu mod ar fi prin folosirea CSS-ului.
Un exemplu de colturi rotunjite create cu ajutorul CSS-ului aveti mai jos (bineinteles acesta poate fi personalizat dupa nevoi):

sdaef0.png

Dupa tagurile <head></head> introduceti codurile:
 

<style type="text/css">
.chenar{display:block}
.chenar *{
 display:block;
 height:1px;
 overflow:hidden;
 font-size:.01em;
 background:#0099CC}
.chenar1{
 margin-left:3px;
 margin-right:3px;
 padding-left:1px;
 padding-right:1px;
 border-left:1px solid #66e26d;
 border-right:1px solid #66e26d;
 background:#0099CC}
.chenar2{
 margin-left:1px;
 margin-right:1px;
 padding-right:1px;
 padding-left:1px;
 border-left:1px solid #9cec9e;
 border-right:1px solid #9cec9e;
 background:#0099CC}
.chenar3{
 margin-left:1px;
 margin-right:1px;
 border-left:1px solid #27d635;
 border-right:1px solid #27d635;}
.chenar4{
 border-left:1px solid #66e26d;
 border-right:1px solid #66e26d}
.chenar5{
 border-left:1px solid #31d83e;
 border-right:1px solid #31d83e}
.chenarfg{
 background:#0099CC}
</style>

Apoi introduceti intre tagurile <body></body> ce avem mai jos:
 

<b class="chenar">
<b class="chenar1"><b></b></b>
<b class="chenar2"><b></b></b>
<b class="chenar3"></b>
<b class="chenar4"></b>
<b class="chenar5"></b></b><div class="chenarfg">
<!-- content goes here -->
PC Troubleshooting<br/>
Tutoriale CSS, PHP, HTML, MYSQL<br/>
Tutoriale web design<br/>
Passion for computers
</div>

<b class="chenar">
<b class="chenar5"></b>
<b class="chenar4"></b>
<b class="chenar3"></b>
<b class="chenar2"><b></b></b>
<b class="chenar1"><b></b></b></b>
</div>

Un alt exemplu gasiti si aici: http://viralpatel.net/blogs/rounded-corner-css-without-images/

 

Succes :pct:!

  • Upvote 3

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

  • 2 years later...

Mai detaliat de atat ? Incearca sa urmezi instructiunile date mai sus.

Iti recomand sa inserezi codurile date de mine mai sus in Dreamweaver 8 pentru ca are posibilitatea de vizualizare atat a codului scris de tine cat si a previzualizarii codului in format interpretat de browser, iar cu ajutorul acestui program vei putea face cateva teste pentru a intelege mai bine codurile.

Exemplu:

ji_9972467_9972468_pc_01.gif

  • Upvote 1

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

  • 1 year later...

Am un site html (mai mult sau mai putin :)) ) si am in body textul intre <h2>text</h2> si in fisierul css

#meniu h2 {

height: 30px;

margin: 30px 0 0 0;

padding: 5px 10px 0 10px;

background: #84102b repeat-x;

letter-spacing: normal;

font-size: 14px;

color: #FFFFFF;

}

Imi apar ca niste dreptunghiuri, cum pot sa fac sa apare cu colturile rotunsite? ce ar trebui sa adaug mai exact?

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.