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 and HTML help please

Featured Replies

<div style="background:url(images/slide-5.jpg); height:300px; width:600px">

<table width="100%" border="0" cellspacing="0" cellpadding="5">

<tr>

<td style="background:rgba(240,240,240,0.9);" width="500" height="100">

<ul>

<li>Sample Text 1</li>

<li>Sample Text 1</li>

<li>Sample Text 1</li>

</ul>

</td>

</tr>

</table>

</div>



You cannot modify the opacity of an image using the css code as per my knowledge. Either you can do it in your photo editor or you can use the CSS code for background as i have shown you in the above example. Modify the alpha parameter, this way you can vary the transparency.


I hope this solves your issue



post-59705-0-31267600-1395697151_thumb.jpg

There is two ways to add transparency in CSS3: With the background property as shown above or with the opacity property:

 

 <td style="opacity: 0.5;" width="500" height="100">

If you have images in your td the opacity value will also apply to them. So you don't need to edit them in an image editor.

There is two ways to add transparency in CSS3: With the background property as shown above or with the opacity property:

 

 <td style="opacity: 0.5;" width="500" height="100">

If you have images in your td the opacity value will also apply to them. So you don't need to edit them in an image editor.

 

I definitely prefer this solution, it's simple quick and easy to remember. Plus it is compact and requires less code so helps with minimizing everything too :)

 

However; Don't forget that if you are using a stack context ( 'z-index' ) the use of opacity will break the context and things will go mental for you, then you will have some fun!

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.