Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TUTORIAL: Trick to put Optimized round cornerd buttons

Featured Replies

Some of us usually put a button with rounded corners on our web pages. We take the whole button as an image and insert it into the page. But if we have many such buttons, then the size of the page is increased a lot. So, here I have a trick by which you can cut small parts of the button and let CSS generate the whole button.

 

I’ve cut the four small rounded corners into four different images and taken them as a background in four divs and applied certain styles to those divs.

 

So, the HTML goes like this.

 

<body>

<div class = "container">

<div class = "cornerbl"><div class = "cornerbr"><div class = "cornertl"><div class = "cornertr">

</div></div></div></div>

</div>

</body>

 

And the CSS goes like this:

 

<style type = "text/css">

.container {

width:100px;

height:30px;

background-color: #0c0c0c;

}

.cornerbl {

width:100%; height:100%;

background: url(cornerbl.gif) 0 100% no-repeat;

}

.cornerbr {

width:100%; height:100%;

background: url(cornerbl.gif) 100% 100% no-repeat;

}

.cornertl {

width:100%; height:100%;

background: url(cornerbl.gif) 0 0 no-repeat;

}

.cornertr {

width:100%; height:100%;

background: url(cornerbl.gif) 100% 0 no-repeat;

}

</style>

 

Source: http://www.designpal.org/2008/07/06/...unded-corners/

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.