Review Profile Pic Attachement.
I am trying to coming up with a sample HTML code for the bottom Left hand corner Profile pic on the main cover page div like facebook.
I don't know how to incorporate that rectangle profile on top of the cover photo. Can someone assist me???
Loading
Iftikar HussainPosted Jul 5, 2013, 4:59 AM
<style type="text/css">
.profilePic
{
border: 1px solid slategray;
color: rgb(59, 89, 152);
display: block;
height: 168px;
left: 15px;
margin-top: 0px;
position: absolute;
text-align: left;
top: -143px;
width: 168px;
}
.profilePic img {
background-color: #FFFFFF;
border:4px solid #FFFFFF;
}
style>
Regards,
Iftikar
Iftikar HussainPosted Jul 5, 2013, 6:30 AM
Create a folder in your desktop named - TestImage
under this folder create one image folder named Image
under TestImage folder create your html file and define the path as src="Image/Sunset.jpg"
After that it will work in all browser.
Regards,
Iftikar
David SmithPosted Jul 5, 2013, 6:18 AM
Also in your html code, what does the display block mean, and also the position absolute. I see those to properties alot.
How do I get the radius circle to work in the IE browser
Iftikar HussainPosted Jul 5, 2013, 6:06 AM
http://stackoverflow.com/questions/3815732/how-do-i-create-a-circle-or-square-with-just-css-with-a-hollow-center
Regards,
Iftikar
David SmithPosted Jul 5, 2013, 5:50 AM
below is test code. I dont see the images in the firefox browser, but i see the images in the other browsers
Iftikar HussainPosted Jul 5, 2013, 5:36 AM
Here is the HTML code
Regards,
Iftikar
David SmithPosted Jul 5, 2013, 5:27 AM
David SmithPosted Jul 5, 2013, 4:52 AM
Iftikar HussainPosted Jul 5, 2013, 4:12 AM
Regards,
Ifitkar
David SmithPosted Jul 5, 2013, 2:27 AM
border: 1px solid slategray;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
box-shadow: none;
color: rgb(59, 89, 152);
cursor: pointer;
direction: ltr;
display: block;
font-family: 'lucida grande', tahoma, verdana, arial,sans-serif;
font-size: 11px;
height: 168px;
left: 15px;
line-height: 14px;
margin-top: 0px;
position: absolute;
text-align: left;
text-decoration: underline;
top: -143px;
width: 168px;
zoom: 1;
Iftikar HussainPosted Jul 5, 2013, 1:13 AM
You can do as shown below
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title>
<style type="text/css">
.profilePic
{
border: 1px solid slategray;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
box-shadow: none;
color: rgb(59, 89, 152);
cursor: pointer;
direction: ltr;
display: block;
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 11px;
height: 168px;
left: 15px;
line-height: 14px;
margin-top: 0px;
position: absolute;
text-align: left;
text-decoration: underline;
top: -143px;
width: 168px;
zoom: 1;
}
.profilePic img {
background-color: rgb(255, 255, 255);
border-bottom-color: rgb(255, 255, 255);
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-style: solid;
border-bottom-width: 4px;
border-image-outset: 0px;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(255, 255, 255);
border-left-style: solid;
border-left-width: 4px;
border-right-color: rgb(255, 255, 255);
border-right-style: solid;
border-right-width: 4px;
border-top-color: rgb(255, 255, 255);
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-top-style: solid;
border-top-width: 4px;
}
style>
head>
<body style="background-color: ghostwhite;">
<div style="margin: 10px;border:1px solid lightgray; background-color: #ffffff; height:390px;width: 750px">
<div style=" height:350px;width:750px;">
<img src="Image/Sunset.jpg" alt="" style="height: 350px;width: 750px"/>
div>
<div style="position: relative;float:left;">
<a class="profilePic">
<img src="Image/Water lilies.jpg" alt="" style="height: 160px;width: 160px"/>
a>
div>
div>
body>
html>
Regards,
Iftikar