I want to use css to crop a square image like seen on the attached image. But also using the text on the right so how would I realize that whole container?
<div style="width:100%">
<div style="widht:50%; float:left">
My Texting
</div>
<div style="widht:50%; float:left">
<img src="myimage.png">
</div>
</div>
See fiddle here: https://jsfiddle.net/hgo62n6a/ How to crop the image?
Solution is here (edited, much cleaner now and flexible):
DEMO: jsFiddle
HTML:
<div class='section clearfix'>
<div class='section-content section-col section-col-left'>
<div class='padding'>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div> <!-- end of .section-content -->
<div class='section-bar clearfix'>
<table>
<tr>
<td><a href=''>item 1</a></td>
<td><a href=''>item 2</a></td>
<td><a href=''>item 3</a></td>
</tr>
</table>
</div> <!-- end of .section-bar -->
<div class='section-bg' style='background-image: url("http://www.ysecit.com/css/images/bg-original.jpg")'> </div>
CSS:
*{
padding: 0;
margin: 0;
text-decoration: none;
box-sizing: border-box
}
.clearfix {
display: table;
}
.clarfix ::after{
content: "";
display: block;
clear: both;
}
.padding{
padding: 40px;
}
.section {
position:relative;
overflow: hidden;
}
.section-col{
}
.section-col-left {
float: left
}
.section-content {
width: 50%;
left: 0;
z-index: 3;
position: relative;
}
.section-content::before {
display: block;
width: 0;
content: "";
position: absolute;
top: 0;
right: -40px;
border: 1000px solid #fff;
border-right: 200px solid transparent;
z-index: 2;
}
.section-content div {
position: relative;
z-index: 3;
}
.section-bg {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-size: cover;
background-position: top right;
background-repeat: no-repeat;
}
.section-bar {
position: absolute;
bottom: 0;
width: 100%;
background: #000;
z-index: 2
}
.section-bar table {
float: right;
}
.section-bar table tr td {
padding: 10px
}
.section-bar table tr td a{
color: #fff
}
Use this CSS:
img {
position: absolute;
clip: rect(0px,60px,200px,0px);
}
The format for the clip attribute is as follows:
clip: rect(top, right, bottom, left);
please refer this one:
.holder {
width: 200px;
height: 200px
}
.holder:before {
content:"";
width: 0px;
height: 0px;
border-top: 20px solid transparent;
border-left: 20px solid transparent;
border-right: 20px solid white;
border-bottom: 20px solid white;
position:absolute;
top: 169px;
left: 169px;
}
img {
width: 100%;
height: 100%;
}
DEMO
Hope this will help you..
Here is Html code:
<div style="width:100%">
<div style="widht:50%;float:left;
background-color:#efefef;
height:200px
;width:300px;" class="cutCorner">
My Texting
</div>
<div style="widht:50%; float:left;" >
<img style=height:200px;width:300px;"
src="http://www.mobilo-med.de/uploads/media/Push_up_girl.jpg">
</div>
</div>
Css Code:
.cutCorner {
position:relative;
border:1px solid transparent; display: inline-block;
}
.cutCorner img {
display:block;
}
.cutCorner:after {
position:absolute; left:-2px; top:-2px; content:'';
border-bottom: 310px solid white;
border-left: 310px solid transparent;
}
https://jsfiddle.net/Harpreet_devgun/hgo62n6a/12/
Related
I am trying to create a single page website using relative units (vh; em; rem) for the first time but the footer wouldn't stay at the bottom and for different screen sizes it stays at the viewport height of the screen. For mobile it works fine since the text is smaller thanks to the units.
I've tired setting each sections (nav, homePG, footer) a grid-row of 1,2,3 respectively to see if it can fix the issue.
html, body {
height: 100%;
width: 100%;
margin: auto;
padding: auto;
background-color: #020224;
color: white;
}
.container{
min-height: 100%;
display: grid;
grid-template-rows: 1fr auto;
}
/* NAV SECTION */
.nav{
position: sticky;
background-color: transparent;
top: 0;
left: 0;
right: 0;
display: grid;
grid-template-columns: auto auto;
z-index: 1;
}
.nav a:link, .nav a:visited{
color: white;
text-decoration: none;
}
.nav a:hover{
color: cyan;
}
.navLeft {
font-size: 2em;
text-align: left;
}
.navRight{
font-size: 1.5em;
text-align: right;
}
.navRight a {
padding-left: 10px;
}
/* MAIN CONTENT */
.homePG{
position: absolute;
margin: auto;
width: 100%;
text-align: center;
font-size: 7vw;
}
.homePG img{
width: 500px;
height: 500px;
}
.homePG h1{
font-size: 1em;
}
.homePG p{
font-size: 0.5em;
}
/* FOOTER CONTENT */
.footer{
position: absolute;
text-align: center;
margin: 0;
bottom: 0;
left: 0;
right: 0;
background-color: #030342;
padding:10px;
font-size:15px;
}
#media screen and (max-width: 1000px) {
.homePG{
padding-top: 50%;
}
.homePG img{
width: 400px;
height: 400px;
}
}
#media screen and (max-width: 750px) {
.homePG img{
width: 200px;
height: 200px;
}
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>Brandon</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body class="container">
<section class="nav">
<nav class="navLeft">
Brandon
</nav>
<nav class="navRight">
ABOUT
PROJECTS
CONTACT
</nav>
</section>
<section class="homePG">
<img src="./assets/pic.png"></img>
<h1>Brandon</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</section>
<section class="footer">
<footer>
# Copyright
</footer>
</section>
</body>
</html>
why you are using position: absolute please change it to relative in below two classes hope this will help you.
.homePG{
position: relative;
margin: auto;
width: 100%;
text-align: center;
font-size: 7vw;
}
.footer{
position: relative;
text-align: center;
margin: 0;
bottom: 0;
left: 0;
right: 0;
background-color: #030342;
padding:10px;
font-size:15px;
}
I want to make an effect where when you hover over it, an overlay slides up. I have a card and it has padding. I want the overlay to be 100% of the card's width but the padding on it makes it thinner.
I have created a quick example to show the issue (note: the ".read" class with the blue background is what I'm talking about):
.card h2 {
padding-top: 1em;
}
.card img {
width: 100%;
height: 25em;
}
.card {
width: 50%;
float: left;
background: #e5e5e5;
padding: 2em;
margin: 1em;
box-sizing: border-box;
cursor: pointer;
transition: all 300ms ease;
overflow: hidden;
}
.read {
color: white;
background: blue;
height: 40px;
}
<div class="card">
<img src="https://prodimage.images-bn.com/pimages/9781338659511_p0_v1_s550x406.jpg">
<h2>Integer Sagittis</h2>
<p>Integer Sagittis</p>
<div class=read>
<p>Read more</p>
</div>
</div>
Does anyone know how to make the overlay 100% of the card's width?
You can even out the padding by giving the .read a negative margin.
I also implemented how you should do the hovering part, here's the example, you can try to hover on the card:
.card h2 {
padding-top: 1em;
}
.card img {
width: 100%;
height: 25em;
}
.card {
--padding: 2em;
width: 50%;
float: left;
background: #e5e5e5;
padding: var(--padding);
margin: 1em;
box-sizing: border-box;
cursor: pointer;
transition: all 300ms ease;
overflow: hidden;
}
.read {
color: white;
background: blue;
height: 40px;
margin: calc(var(--padding) * -1);
margin-top: 0;
transform: translateY(100%);
transition: transform .2s;
}
.card:hover .read{
transform: translateY(0);
}
<div class="card">
<img src="https://prodimage.images-bn.com/pimages/9781338659511_p0_v1_s550x406.jpg">
<h2>Integer Sagittis</h2>
<p>Integer Sagittis</p>
<div class=read>
<p>Read more</p>
</div>
</div>
There's also a solution is to make the .read position: absolute. But in that way you need to make some room at the bottom of the .card from .read not obscuring the content, which is less flexible.
.card h2 {
padding-top: 1em;
}
.card img {
width: 100%;
height: 25em;
}
.card {
width: 50%;
float: left;
background: #e5e5e5;
padding: 2em;
margin: 1em;
box-sizing: border-box;
cursor: pointer;
transition: all 300ms ease;
overflow: hidden;
position: relative;
}
.read {
color: white;
background: blue;
height: 40px;
position: absolute;
left: 0;
bottom: 0;
width: 100%;
transform: translateY(100%);
transition: transform .2s;
}
.card:hover .read{
transform: translateY(0);
}
<div class="card">
<img src="https://prodimage.images-bn.com/pimages/9781338659511_p0_v1_s550x406.jpg">
<h2>Integer Sagittis</h2>
<p>Integer Sagittis</p>
<div class=read>
<p>Read more</p>
</div>
</div>
You cannot animate height and width, but you can animate height using transform: translateY.
The key to what I believe you desire is to create a three-Div structure: one outer div (.card), and two inner divs (.olayDiv and .imgDiv).
The outer div (.card) must be styled position:relative, and the inner divs must be position:absolute -- this causes the inner divs to sit on top of each other. You then use z-index to place .olayDiv on top of .imgDiv. (Note that you must make the outer div position:relative or the position:absolute will not work on the inner divs)
.card{
position:relative;
width: 350px;
height: 300px;
overflow: hidden;
border:1px solid #ccc;
}
.bothInnerDivs{
position: absolute;
left:0;
width:100%;
height:100%;
}
.imgDiv{
z-index: 0;
width:100%;
top:0;
}
.olayDiv{
z-index: 1;
top:0;
transform: translateY(88%);
transition: transform .5s ease-out;
color:white;
background:rgba(0,0,0,0.85);
}
.olayDiv:hover{
transform: translateY(0);
}
.blurb{
padding: 10px;
height:50%;
}
.imgDiv h2 {
padding-top: 1em;
}
.imgDiv img {
width: 275px;
height: 25em;
}
.imgDiv {
padding: 2em;
margin: 1em;
box-sizing: border-box;
cursor: pointer;
overflow: hidden;
}
.read {
color: white;
background: blue;
height: 40px;
}
.centerHeightAndWidth{
display: flex;
align-items:center;
justify-content:center;
}
p{padding:0;margin:0;}
<div class="card">
<div class="imgDiv bothInnerDivs">
<img src="https://prodimage.images-bn.com/pimages/9781338659511_p0_v1_s550x406.jpg">
<h2>Integer Sagittis</h2>
<p>Integer Sagittis</p>
</div>
<div class="olayDiv bothInnerDivs">
<div class="read centerHeightAndWidth"><p>Read more</p></div>
<div class="blurb">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
<div class="blurb">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris. </div>
</div>
</div>
I've created a box containing images, but what I am trying to do is:
either display the images inline or position them on top of each other, then navigate among them using JQuery.
I've tried absolute positioning on both .box and .box img as well as display: inline but they mess up the code.
here it is so far:
.box {
position: absolute;
left: 10%;
width: 80%;
border: 10px solid white;
border-radius: 10px;
box-shadow: 0 0 4px black;
}
.box img {
width: 100%;
}
.prev, .next {
border: 1px solid black;
padding: 5px;
}
.prev:Hover, .next:Hover {
background-color: red;
color: white;
text-decoration: none;
}
<div class="container-fluid">
<h1>Welcome Within</h1>
<div class="box">
<img src="http://www.dan-dare.org/FreeFun/Images/PrinceOfPersiaWallpaper21024.jpg" />
<img src="https://www.gamewallpapers.com/img_script/mobile_dir2/img.php?src=wallpaper_prince_of_persia_warrior_within_18_ipad.jpg&height=755&width=850&crop-to-fit" />
<img src="https://r.mprd.se/media/images/66295-Prince_Of_Persia_Warrior_Within_READNFO-4.jpg" />
<br /></br />
PREVIOUS
NEXT
</div>
</div>
Try this:
.box {
position: absolute;
left: 10%;
width: 80%;
border: 10px solid white;
border-radius: 10px;
box-shadow: 0 0 4px black;
height: 300px;
overflow: hidden;
margin-bottom: 10px;
}
.caption {
position: absolute;
top: 10px;
color: red;
font-size: 20px;
background: #fff;
left: 30%;
}
.box img {
width: 100%;
}
.prev,
.next {
border: 1px solid black;
padding: 5px;
}
.prev:Hover,
.next:Hover {
background-color: red;
color: white;
text-decoration: none;
}
<div class="container-fluid">
<h1>Welcome Within</h1>
<div class="slider">
PREVIOUS
NEXT
<div class="box">
<img src="http://www.dan-dare.org/FreeFun/Images/PrinceOfPersiaWallpaper21024.jpg" />
<p class="caption">Caption1</p>
</div>
<div class="box">
<img src="https://www.gamewallpapers.com/img_script/mobile_dir2/img.php?src=wallpaper_prince_of_persia_warrior_within_18_ipad.jpg&height=755&width=850&crop-to-fit" />
<p class="caption">Caption2</p>
</div>
<div class="box">
<img src="https://r.mprd.se/media/images/66295-Prince_Of_Persia_Warrior_Within_READNFO-4.jpg" />
<p class="caption">Caption3</p>
</div>
</div>
</div>
I've tried this:
$(document).ready(function() {
$('.lightbox').click(function() {
$('.backdrop, .box').animate({
'opacity': '.50'
}, 300, 'linear');
$('.box').animate({
'opacity': '1.00'
}, 300, 'linear');
$('.backdrop, .box').css('display', 'block');
});
$('.close').click(function() {
close_box();
});
$('.backdrop').click(function() {
close_box();
});
//SlideShow
$('.next').click(function(){
clickNext();
});
$('.prev').click(function(){
clickPrev();
});
});
function close_box() {
$('.backdrop, .box').animate({
'opacity': '0'
}, 300, 'linear', function() {
$('.backdrop, .box').css('display', 'none');
});
}
//PREVIOUS
function clickPrev() {
$('.img_1').css('display', 'block');
//Move to the prev Image
$('.img_2').css('display', 'none');
}
//NEXT
function clickNext() {
$('.img_1').css('display', 'none');
//Move to the next Image
$('.img_2').css('display', 'block');
}
body {
font-family: Helvetica, Arial;
}
.backdrop {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: #000;
opacity: .0;
filter: alpha(opacity=0);
z-index: 50;
display: none;
}
.box {
position: absolute;
top: 50%;
transform: translate(-50%,-50%);
left: 50%;
background: white;
text-align: left;
z-index: 51;
padding: 0;
margin: 0;
display: none;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0px 0px 5px #444444;
-webkit-box-shadow: 0px 0px 5px #444444;
box-shadow: 0px 0px 5px #444444;
border: 10px solid #fff;
width: 44%;
}
.box img {
width: 100%;
}
.box img:nth-child(2) {
display: none;
}
.caption {
padding-top: 10px;
font-size: 15px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="container-fluid">
<h1>Welcome Within</h1>
Open Lightbox
<div class="backdrop"></div>
<div class="box">
<img class="img_1" src="http://www.dan-dare.org/FreeFun/Images/PrinceOfPersiaWallpaper21024.jpg" />
<img class="img_2" src="https://www.gamewallpapers.com/img_script/mobile_dir2/img.php?src=wallpaper_prince_of_persia_warrior_within_18_ipad.jpg&height=755&width=850&crop-to-fit" />
<div class="caption">
<p>This thing is called 'Caption'...Feels nice. Let me tell you:</p>
<hr />
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
PREVIOUS
NEXT
</div>
</div>
I'm trying to make a vertical navbar on the left of the page which is as long as the website (i.e. stretches down to the footer). However, it is only the right height when there is nothing above it - when I add the site's title, the navbar gets longer than the site.
body{
padding: 0px;
margin: 10px auto 0 auto;
font-family: 'corbel','arial';
background: #fff;
color: #444; /* text colour */
max-width: 1500px;
height: auto;
position: relative;
}
footer{
background: #333;
color: #fff;
padding: .1em 3em;
width: auto;
margin-left: 130px;
}
h1{
text-align: center;
font-size: 85px;
padding: 10px;
margin: auto;
margin-top: 10px;
}
#content{
margin-left: 150px;
}
/* Navbar */
#navbar{
background-color: #599;
list-style-type: none;
overflow: hidden;
width: 130px;
margin: 0px;
font-family: 'corbel','arial';
text-align: center;
padding-left: 0px;
height: 100%;
float: left;
position: absolute;
}
#nav_li{
text-align: center;
}
#nav_a{
text-decoration: none;
margin: 10px;
display: inline-block;
color: white;
}
<h1>Website Title</h1>
<body>
<ul id='navbar'>
<li id='nav_li'><a id='nav_a' href='index.html'>Home</a></li>
<li id='nav_li'><a id='nav_a' href='gallery.html'>Gallery</a></li>
<li id='nav_li'><a id='nav_a' href='reviews.html'>Our reviews</a></li>
</ul>
<div id='nav_fill'> </div>
<div id='content'>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<footer>
<p>Content © Business Name - Website design ©</p>
</footer>
</body>
Big thanks to anyone who can help!
There are multiple ways of fixing this problem - the easiest is to just put the html, body background color as the sidebar in CSS (with height: 100%), then add a sticky header and footer at the top and bottom, and put a background-color on the container-element.
Something like this:
* { margin: 0; padding: 0;}
html, body {
height: 100%;
background: blue;
}
#content {
background: white;
}
h1 {
background: white;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3em;
}
#menu {
margin-top: 3.5em;
float: left;
width: 7em;
color: white;
}
#content {
background: white;
height: 100%;
margin: 3em 0 4em 7em;
padding-top: 3.5em;
}
footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 4em;
background: gray;
}
<body>
<h1>This is a heading</h1>
<ul id="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<div id="content">
<p>Something goes in here</p>
</div>
<footer>This is the footer</footer>
</body>
Try using position:fixed, and min/max-height i also suggest to use calc(), to calculate good size of navbar.
Here You have jsfiddle
I tried the opacity with the help of this. It does work well, except for one thing. The div where I want to use the opacity has other contents in it too. So, when I use opacity in that parent div, the child div also gets effected! What to do so as to effect only the parent div and not the child divs? Any help will be greatly appreciated. Thank you.
html:
<div id="profile_rightbar">
<div id="shortcuts">
<div class="icon pink">
<a href="#">
<p>Pictures</p>
<p>210</p>
</a>
</div>
<div class="icon green">
<a href="#">
<p>Videos</p>
<p>210</p>
</a>
</div>
<div class="icon blue">
<a href="#">
<p>Forums</p>
<p>210</p>
</a>
</div>
<div class="icon orange">
<a href="#">
<p>Pages</p>
<p>210</p>
</a>
</div>
<div class="icon pink">
<a href="#">
<p>Followers</p>
<p>210</p>
</a>
</div>
<div class="icon green">
<a href="#">
<p>Following</p>
<p>210</p>
</a>
</div>
</div>
<div id="status">
<p>Always do your best. What you plant now, you will harvest later.</p>
</div>
<div id="write">
<textarea id="redactor" name="content">
<h2>Hello and Welcome</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</textarea>
</div>
<div id="activity">
<div class="picture">
<a href="#">
<p>The world is so perfect. How can one not love this beautiful world.</p>
<img src="image/world.jpg">
</a>
</div>
<div class="picture">
<a href="#">
<p>The world is so perfect. How can one not love this beautiful world.</p>
<img src="image/world.jpg">
</a>
</div>
<div class="forum">
<a href="#">
</a>
</div>
<div class="video">
<a href="#">
</a>
</div>
<div class="page">
<a href="#">
</a>
</div>
<div class="following">
<a href="#">
</a>
</div>
</div>
</div>
<div class="clear_right"></div>
css:
html, body {
width: 100%;
height: 100%;
}
#main_wrapper {
width:100%;
height: 100%;
background:url(../image/pantera.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-ms-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
#profile_page {
width: 800px;
margin: 0 auto;
overflow: hidden;
border: 1px solid red;
}
#username h1 {
text-align: center;
color: white;
}
#profile_leftbar {
width: 210px;
float: left;
}
#profile_picture {
background-color: white;
border-radius: 10px;
border: 1px solid #dbdbdb;
}
#profile_picture img {
display: block;
margin: 0 auto;
border: none;
max-width:190px;
padding: 8px;
}
#about {
background: #f4f4f4;
border-radius: 5px;
margin-top: 8px;
border: 1px solid #dbdbdb;
}
#about p {
text-align: center;
color: #000000;
padding-top: 3px;
padding-bottom: 3px;
}
#about hr {
height:1px;
border:0px solid ;
border-top:1px solid #ccc;
}
#follow_message {
width: 210px;
margin: 5px auto;
}
#follow_message li {
list-style-type: none;
float: left;
margin-left: 3px;
}
#follow_message a {
display: block;
width: 101px;
text-align: center;
height: 30px;
color: white;
text-decoration: none;
line-height: 30px;
margin: 2px 0;
background: maroon;
}
#profile_rightbar {
float: right;
width: 590px;
}
#shortcuts {
overflow: hidden;
width: 588px;
margin: 0 auto;
}
#shortcuts div {
float: left;
margin: 4px;
}
.icon a {
text-decoration: none;
text-align: center;
display: block;
color: white;
border-radius: 5px;
width: 88px;
padding: 1px;
}
.icon a:hover {
text-decoration: underline;
}
.pink a {
background-color:#d63175;
}
.green a {
background-color:#51b73c;
}
.blue a {
background-color:#2f8ae0;
}
.orange a {
background-color:#f7a809;
}
#status {
background-color:white;
box-shadow:5px 5px 20px 1px black;
max-width:490px;
word-wrap:break-word;
padding:6px;
margin: 15px auto;
text-align:center;
font-size:30px;
line-height: 32px;
}
#write {
width: 575px;
margin: 0 auto;
}
#write textarea {
font-size:20px;
max-width:575px;
width: 575px;
}
#activity {
margin: 10px;
width: 575px;
}
#activity {
border: solid red;
opacity: 0.2;
filter: alpha(opacity=20); /* IE8 and lower */
zoom: 1;
#activity div {
background: white;
margin: 0 auto;
}
#activity .picture a img {
display: block;
max-width: 540px;
margin: 0 auto;
}
.picture a {
color: black;
text-decoration: none;
}
.picture a p {
margin-top:15px;
margin-left:15px;
}
dont use opacity it affects all child elements
Use
background-color : rgba(255,255,255,0.2);
which blurs only the parent element.