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.

CSS HELP

Featured Replies

Hi there,

 

I have to things that I cant work out how to make in CSS.

First thing is under a menu how to I make each menu have a wavy line under (see wave.png image)?

The other is creating two white boxes behind one another (see box.png image)?

 

 

 

post-24649-0-31165400-1392310377.png

post-24649-0-74135300-1392310391_thumb.png

For the wavy line you will need to create a .png or .gif image with the wavy line and a transparent background. You can then add this line to an element using the css background-image property.

 

For overlapping elements like the two white boxes you would need to use absolute positioning and z-index. For instance

 

<div style="position: absolute; z-index: 1; top: 0; left: 0; width: 100px; height: 100px; border: 1px solid white;">Some content for box 1</div>
<div style="position: absolute; z-index: 2; top: 20px; left: 20px; width: 100px; height: 100px; border: 1px solid white;">Some content for box 2</div>

 

 

Good luck!

Canvas, I would experiment with the canvas element and make each link item a canvas with the wavy line, then if you wanted to add a hover or transition too it you wouldn't need any extra images and any alterations would be simple tweaks in the app itself, possibly even from the backend control panel.

 

The two boxes could be done with a combination of z-index and positioning in css, if the main element had the pseudo ::after, (or ::before), then that would save adding any HTML elements and thus help to keep your code re-usable.

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.