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.

Coding "transparent" image/content area

Featured Replies

Could someone please help me fix this rather large pain in my backside? :p

 

This is what I'm trying to code: http://tinypic.com/r/e1fevl/5

 

This is where I'm at: http://tinypic.com/r/210ye7d/5

 

The second image shows the bottom of a "semi-transparent" box, which should have the leaf image behind it.

 

My issues: Forming the border on the box (which has a rounded edge, so the usual { border: ; } doesn't apply), and placing the leaf image "behind" the box. I have absolutely no idea where to start with either of these problems..

 

Code:

 


<div id="right" class="content">

<div class="br"><div class="bar"><div class="tl"><div class="tr2">

<h2 id="offer">i offer...</h2>

<div id="right-ul">

<ul id="treatments">

<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>

</ul>

<a id="moreLink" href="treatments.html">more...</a>

</div><!-- right-ul ends-->

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


</div><!-- right div ends-->

 

#right {
background-color: #f2f7f3;
color: #8ca191;
float: right;
width: 46%;
height: 300px;
margin-top: 20px;
font-size: 13px;
letter-spacing: 0.2em;
}

 

Thanks a lot in advance!

For the main content area you would be able to do something like this...

 

#area {

background-image: url(images/transparent.png);

border-left: solid 1px #000000;

border-right: solid 1px #000000;

}

 

 

Then you will need to add to the top with the curve and bottom, it depends on two things how you would do this...

 

Either

 

a ) If you know the width of the area and it will never change, then you can create one image on the top with a curve and add the border directly to the image making it 2px wider than the content area below. (repeat for top and bottom)

 

or

 

b ) you will need to create corner images and a top image so the box can extend width wise.

 

[ left top ] [ stretchy top middle ] [ right top]

 

[ stretchy content area ]

 

[ left bottom ] [ stretchy bottom middle ] [ right bottom ]

 

Just imagining they are images then it would look something like that.

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.