Adding an Image to Comment Box

May 02, 2011 21:04

Journal Preview: http://i.imgur.com/ohkBB.jpg
Style Name: (EX: Flexible Squares) Smooth Sailing
Account Type: (Paid, Basic, Plus) Paid

Problem/Question:

Please would anyone be able to help me with some coding? I want to add an image to my comment box so as soon as something clicks 'comment' the image is in the box as a background? I thought it went into textarea in the comments section but had no joy and don't know enough to see where I'm going wrong. Any assistance appreciated.


/*

LJ STYLE: Smooth Sailing
LAYOUT: Lyrical Terrorists
MAKER: kill_zombie

PLEASE CREDIT:
http://community.livejournal.com/kill_brainz/
http://kill_zombie.livejournal.com/

*/

/* ---| BODY / GENERAL CUSTOMIZATION |--- */

body {
background-image: url(http://i.imgur.com/8wTEa.png);
background-position: bottom right;
background-attachment: fixed;
background-repeat: no-repeat;
background-color: #FFFFFF;
font-family: meiryo ui, Sans-serif, segoe ui;
font-size: 11px;
color: #000000;
text-align: justify;
line-height: 1.5;
padding: 0px;
margin: 0px;
}

a, a:visited {
color: #4D4343;
text-decoration: none;
}

a:hover {
color: #780000;
text-decoration: none;
}

.pageblock{
width: 100%;
padding: 0px;
margin: 0 auto;
}

.pagefooterblock {
background-color: transparent;
font-family: Sans serif;
font-size: 10px;
color: #212121;
text-transform: uppercase;
text-align: right;
padding: 20px 50px 10px 0px;
margin: 0px;
}

/* ---| HEADER |--- */

.pageheaderblock, .header-title, .header-subtitle, .header-icon {
display: none;
}

/* ---| PAGE FOOTER |--- */

#footer-menu {
background: transparent;
font-family: Sans serif;
font-size: 11px;
font-variant: small caps;
text-align: left;
padding: 10px;
}

#footer-menu a, .footer-menu a:visited {
white-space: nowrap;
color: #00000;
text-decoration: none;
}

#footer-menu a:hover {
color: #212121;
}

#footer-menu ul {
margin: 0px;
padding: 0px;
}

#footer-menu li {
display: inline;
padding: 1px 5px 1px 5px;
}

/* ---| BODY |--- */

.bodyblock {
padding: 0px;
margin: 0 auto;
}

.bodyheaderblock {
display: none;
}

.bodynavblock {
background: transparent;
color: #000000;
margin: 10px 0px 4px 0px;
padding: 8px;
}

.bodynavblock a, .bodynavblock a:visited {
color: #666666;
}

/* ---| ENTRIES |--- */

.entryHolder {
width: 90%;
font-family: Sans serif;
font-size: 11px;
color: #000000;
padding: 0px;
margin: 40px 0px;
filter: alpha(opacity=90);
-moz-opacity: 0.9;
opacity: 0.9; !important
}

.entryHolder:hover {
filter: alpha(opacity=96);
-moz-opacity: 0.96;
opacity: 0.96; !important
}

.entryUserinfo {
background: transparent;
font-size: 9px;
text-transform: uppercase;
text-align: center;
padding: 1px;
margin: 0px 0px 10px 30px;
}

.entryUserinfo-usericon img {
width: 110px;
height: 110px;
background-color: #141414;
border: 0px;
padding: 17px;
}

.entryUserinfo-usericon img:hover {
background-image: url(http://i.imgur.com/BTSsK.png);
border: 0px;
}

.entryText {
width: 90%;
background-color: #FFFFFF;
font-family: meiryo ui, Arial;
font-size: 12px;
color: #000000;
text-align: justify;
text-indent: 2.5em;
line-height: 1.5;
border-top: 1px solid #000000;
padding: 15px 20px 30px 20px;
}

.entryHeaderSubject {
font-size: 0px;
padding-top: 3px;
}

.entryHeaderDate {
font-family: Sans serif;
font-size: 13px;
color: #2B2727;
letter-spacing: -2px;
text-transform: uppercase;
display: block;
}

.entryHeader {
width: 600px;
line-height: 14px;
padding: 13px 21px 0px 0px;
}

.entryHeader a, .entryHeader a:visited {
font-family: georgia;
font-size: 27px;
font-weight: bold;
color: #111111;
letter-spacing: -1px;
text-transform: uppercase;
}

.entryMetadata {
background-color: #FFFFFF;
font-family: Sans serif;
font-size: 10px;
color: #141414;
text-transform: lowercase;
padding: 0px 30px 20px 45px;
}

.entryMetadata a:hover {
color: #4D4343;
border-bottom: 1px solid #000000;
}

.entryMetadata ul {
margin: 0px;
padding: 0px;
}

.entryMetadata li {
list-style: none;
display: block;
padding-right: 10px;
}

.entryMetadata-label {
font-weight: bold;
color: #212121;
text-transform: uppercase;
padding-right: 4px;
}

.entryLinkbar {
background: transparent;
font-family: Sans serif;
font-size: 12px;
font-weight: bold;
color: #000000;
text-align: left;
padding: 0px 0px 7px 0px;
margin: 0px;
}

.entryLinkbar a, .entryLinkbar a:hover {
background-color: #FFFFFF;
color: #000000;
text-decoration: none;
text-transform: uppercase;
border-left: 1px solid #FFFFFF;
border-right: 1px solid #FFFFFF;
padding: 5px 9px 10px 9px;
}

.entryLinkbar ul {
margin: 0px;
}

.entryLinkbar li {
margin: 0px 7px 0px 0px;
padding: 0px;
display: inline;
}

/* ---| SIDE BAR |--- */

.sidebar {
background-color: #FFFFFF;
width: 305px;
margin: 25px 60px 0px 30px;
filter: alpha(opacity=90);
-moz-opacity: 0.9;
opacity: 0.9; !important
}

.sidebar:hover {
filter: alpha(opacity=96);
-moz-opacity: 0.96;
opacity: 0.96; !important
}

.sidebox {
background-color: #F9F9F9;
padding: 0px;
margin: 0px;
}

.sideboxTitle {
background-color: #FFFFFF;
font-family: georgia;
font-size: 18px;
font-weight: bold;
text-align: left;
text-transform: lowercase;
letter-spacing: -1px;
border-top: 1px solid #444444;
border-bottom: 1px solid #444444;
padding: 3px 0px 3px 20px;
margin: 0px;
}

.sideboxContent {
color: #000000;
text-indent: 1em;
text-align: justify;
padding: 5px 8px 8px 8px;
}

.sidebox #profile {
font-family: Sans serif;
font-size: 10px;
text-align: center;
}

img.profile-userpic {
width: 110px;
height: 110px;
background-color: #FFFFFF;
padding: 2px;
margin: 9px 0px 9px 0px;
border: 1px solid #000000;
}

.profile-label {
font-size: 9px;
font-weight: bold;
color: #111111;
text-transform: uppercase;
margin-right: 2px;
}

.sidebox #search {
font-family: San serif;
font-size: 11px;
color: #111111;
text-decoration: none;
text-transform: lowercase;
text-align: center;
}

.sidebox #tags_sidebox {
font-size: 0px;
text-align: left;
padding: 5px 0px 0px 10px;
}

.sidebox #systemlinks {
text-align: left;
padding: 0px 0px 2px 0px;
}

#tags_sidebox a, #tags_sidebox a:visited, .listitem a, .listitem a:visited {
display: block;
}

#tags_sidebox a, #tags_sidebox a:visited {
font-family: Sans serif;
font-size: 10px;
color: #000000;
text-transform: uppercase;
padding: 1px;
}

#tags_sidebox a:hover {
color: #444444;
}

.listitem a, .listitem a:visited {
font-family: Sans serif;
font-size: 10px;
color: #000000;
text-transform: uppercase;
border-bottom: 1px solid #EBEBEB;
padding: 4px 2px 0px 10px;
}

.listitem a:hover {
background-color: #F5F0F0;
border-bottom: 1px solid #EBEBEB;
}

.listtitle {
font-size: 12px;
font-style: italic;
padding: 3px 0px 1px 10px;
display: none;
}

.sidebox #latestmonth {
text-align: center;
}

.sidebox #latestmonth table {
width: 90%;
margin-left: auto;
margin-right: auto;
margin-top: 4px;
}

.profile-label {
font-weight: bold;
}

/* ---| COMMENT PAGES |--- */

.commentHolder {
background-color: #FFFFFF;
font-family: Sans serif, Arial;
font-size: 12px;
color: #000000;
line-height: 1.25;
text-indent: 2em;
text-align: justify;
padding: 0px;
margin: 5px 0px 15px 0px;
filter: alpha(opacity=90);
-moz-opacity: 0.9;
opacity: 0.9; !important
}

.commentHolder:hover {
filter: alpha(opacity=96);
-moz-opacity: 0.96;
opacity: 0.96; !important
}

.commentUserinfo {
background-color: transparent;
font-size: 10px;
text-transform: uppercase;
text-align: center;
margin: 5px 10px 5px 2px;
}

.commentUserinfo-usericon img {
height: 105px;
width: 105px;
background-color: #F7F7F7;
padding: 2px;
border: 1px solid #000000;
margin: 0px 0px 5px 0px;
}

.commentText {
font-family: Sans serif;
font-size: 11px;
color: #000000;
text-align: justify;
text-indent: 2.5em;
line-height: 1.25;
border-top: 1px solid #000000;
padding: 10px 15px 15px 10px;
margin: 0px;
}

.commentHeader {
background: transparent;
font-family: segoe ui;
font-size: 15px;
font-weight: bold;
color: #111111;
text-align: left;
text-transform: lowercase;
letter-spacing: -1px;
padding: 0px 5px 0px 65px;
}

.commentHeader a {
color: #000000;
text-decoration: none;
}

.commentHeaderScreened {
background: transparent;
font-family: Georgia;
font-size: 15px;
font-weight: bold;
font-style: italic;
color: #444444;
text-align: left;
text-transform: lowercase;
letter-spacing: -1px;
padding: 0px 5px 0px 65px;
}

.commentHeaderSubject {
}

.commentLinkbar {
background: transparent;
font-family: Sans serif;
font-size: 10px;
font-weight: bold;
color: #000000;
text-align: left;
text-transform: uppercase;
padding: 0px 0px 5px 30px;
}

.commentLinkbar ul {
margin: 0px;
padding: 0px;
}

.commentLinkbar li {
padding: 0px 5px 0px 5px;
margin: 0px;
display: inline;
}

.replyform {
background-color: #F9F9F9;
url(http://i.imgur.com/4rKGw.png);
font-family: Sans serif;
color: #212121;
padding: 2px 2px 2px 10px;
}

#commenttext {
width: 100%;
}

/* ---| ARCHIVES / CALENDAR VIEW |--- */

.yearlinks {
text-align: right;
}

.yearlink {
padding-left: 4px;
padding-right: 4px;
}

.month {
width: 500px;
border: 1px solid #111111;
margin: 8px 8px 8px 40px;
}

.daysubjects {
font-weight: bold;
color: #444444;
text-transform: uppercase;
letter-spacing: 1px;
padding: 8px 8px 8px 40px;
}

.daytitles {
font-size: 12px;
color: #555555;
text-align: center;
text-transform: uppercase;
border: 1px solid #111111;
}

.day-blank {
background-color: #FFFFFF;
border: 1px solid #111111;
}

.day {
background-color: #FFFFFF;
border: 1px solid #111111;
}

.day-date {
width: 50%;
background-color: #FFFFFF;
border-right: 1px solid #222222;
border-bottom: 1px solid #222222;
font-family: Georgia;
font-size: 14px;
color: #444444;
text-align: center;
}

.day-date:hover {
background-color: #F9F9F9;
}

.day-count {
float: right;
width: 50%;
font-family: Georgia;
font-size: 20px;
text-align: center;
}

.day-count a, .day-count a:visited {
color: #888888;
text-decoration: none;
}

.day-count a:hover {
color: #111111;
}

/* ---| TAG PAGE |--- */

.tagstable, .tagstable td {
font-family: Sans serif;
font-size: 12px;
text-align: center;
text-transform: uppercase;
border: 1px solid #111111;
}

.tagstable {
width: 90%;
}

/* ---| MISC. / OTHER CODING AND STUFF |--- */

blockquote {
background-color: #454141;
font-family: Georgia;
font-size: 11px;
color: #FFFFFF;
text-indent: 0.5em;
text-align: justify;
line-height: 1.3em;
border: 1px solid #212121;
padding: 7px;
}

textarea {
background-color: #FFFFFF;
font-family: meiryo ui;
font-size: 9px;
color: #444444;
border: 1px solid #111111;
padding: 2px;
}

input, select {
background-color: #212121;
font-family: Sans serif;
font-size: 10px;
color: #FFFFFF;
text-align: left;
line-height: 1.25;
border: 1px solid #212121;
padding: 1px;
}

/* ---| TINY ICONS / CUSTOMIZED LIVEJOURNAL ICONS |--- */

.entryHeader img[src="http://p-stat.livejournal.com/img/icon_protected.gif"]{
width: 0;
height: 0;
padding: 0 15px 16px 0;
background: url("http://i274.photobucket.com/albums/jj270/jessica0293/tiny%20icons/locked.gif");
}

.entryHeader img[src="http://p-stat.livejournal.com/img/icon_private.gif"]{
width: 0;
height: 0;
padding: 0 16px 16px 0;
background: url("http://i274.photobucket.com/albums/jj270/jessica0293/tiny%20icons/private-brown.gif");
}

.entryHeader img {
width: 0;
height: 0;
background-repeat: no-repeat;
/* so that IE users will still see an image */
background-image: url("http://i274.photobucket.com/albums/jj270/jessica0293/tiny%20icons/locked.gif");
padding: 15px 16px 0 0;
}

.ljuser img {
width: 0;
height: 0;
background-repeat: no-repeat;
background-color:transparent;
/* so that IE users will still see an image */
background-image: url('http://i274.photobucket.com/albums/jj270/jessica0293/tiny%20icons/userinfo-gray.png');
padding: 9px 9px 0 2px !important;
}

.ljuser img[src="http://l-stat.livejournal.com/img/userinfo.gif"] {
background-color:transparent;
background-image: url('http://i274.photobucket.com/albums/jj270/jessica0293/tiny%20icons/userinfo-gray.png');
padding: 9px 8px 0 2px !important;
}

.ljuser img[src="http://l-stat.livejournal.com/img/community.gif"] {
background-color:transparent;
background-image: url('http://i274.photobucket.com/albums/jj270/jessica0293/tiny%20icons/community-gray.png');
padding: 9px 8px 0 2px !important;
}

/* ---| CONTEXTUAL POP-UP |--- */

div.ContextualPopup img {
padding: 3px;
border: 1px solid #000000;
}

div.ContextualPopup div.Inner {
background-color: #F9F9F9 !important;
font-family: Sans serif;
color: #111111 !important;
border: none;
padding: 7px;
width: 260px;
}

div.ContextualPopup .Content {
line-height: 1.3;
padding: 7px 10px 7px 10px;
margin-right: 90px;
line-height: 1.4;
}

div.ContextualPopup .Userpic {
padding: 5px;
margin: 0px;
}

div.ContextualPopup .Relation {
letter-spacing: 1px;
font-weight: lighter !important;
margin-bottom: 3px;
padding-bottom: 3px;
border-bottom: 1px solid #111111;
}

div.ContextualPopup .Content .OnlineStatus {
font-weight: lighter;
font-style: italic;
}

div.ContextualPopup div.Inner a, div.ContextualPopup div.Inner a:active, div.ContextualPopup div.Inner a:visited, div.ContextualPopup div.Inner a:hover {
text-decoration: none; !important;
font-weight: lighter;
color: #333333 !important;
}

/* ---| CUSTOM NAVSTRIP |--- */

#lj_controlstrip {
}

table#lj_controlstrip td {
background-color: #171313;
font-family: Sans serif;
size: 11px;
color: #FFFFFF;
border: 1px solid #171313;
border-left: none;
}

#lj_controlstrip a, #lj_controlstrip a:visited {
font-family: Georgia;
font-weight: lighter;
color: #d4ddee;
text-decoration: none;
}

#lj_controlstrip a:hover {
text-decoration: underline;
}

#lj_controlstrip_statustext {
font-family: Sans serif;
font-size: 11px;
color: #FFFFFF;
text-transform: uppercase;
}

form#qrform table {
border-width: 0px !important;
padding-right: 6px;
}

resolved, questions

Previous post Next post
Up