You need to sign in to do that
Don't have an account?
Hitesh chaudhari
how to display icon as place holder in using SLDS componets
I am trying to display comment icon as a place holder for a text field but not able to add it as expected.
Following is the peace of code i am refering
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0"> <style> .inputFieldClass { height: 40px; width: 400px; /* color: green; */ /*border-color: green;*/ background-image: "http://icons.iconarchive.com/icons/bokehlicia/captiva/256/chat-bubbles-icon.png" ; background-repeat: no-repeat; text-indent: 20px; } </style> <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en"> <head> <apex:slds /> </head> <body> <div class="slds-scope"> <div class="slds-grid"> <div class="slds-col slds-size_1-of-6"> <ul class="slds-list--vertical slds-has-inline-block-links--space"> <li class="slds-list__item"><a href="#void">Geeting started</a></li> <li> <ul class="slds-list--vertical slds-is-nested"> <li class="slds-list__item"><a href="#void">Find a place</a></li> <li class="slds-list__item"><a href="#void">Experience</a></li> </ul> </li> <li class="slds-list__item"><a href="#void">Booking your trip</a></li> <li class="slds-list__item"><a href="#void">Payments</a></li> <li class="slds-list__item"><a href="#void">Yours Trips</a></li> </ul> </div> <div class="slds-col slds-size_5-of-6"> <div id="mydiv" class="slds-size_1-of-2 slds-p-top_x-large" > <h5 class="slds-text-heading_large" style="font-weight: 600;">How are we doing ?</h5> </div> <div class="slds-p-top_medium"> We are always there to improve our expeience so we would love to hear what's working and how we could make it better. </div> <div class="slds-p-top_medium"> <h1 style="display:inline ;font-weight: 700;" >This isn't the way to contact us ,through. </h1> We can't reply to bug report indvijually. If you have question regarding solving problem. you will find answer in help center or you can <h1 style="color: darkseagreen;"><a href="">contact us. </a></h1> </div> <div class="slds-p-top_xx-large"> <div style="font-weight :600 ;"> What would you like to do ? <div class="slds-grid slds-gutters">  <div class="form-group" style="font-weight :500 ;"> <span class="inputFieldClass11"><i class='icon-search'></i></span> <input name="firsttext" class="inputFieldClass" placeholder=" dsafffffffffff" onchange="hideImage()"/> <input type="text" placeholder=" Search" style="font-family:Arial, FontAwesome" /> <textarea placeholder=' Add Comment'></textarea> </div> <div class="slds-col"> <span>2</span> </div> </div> </div> </div> </div> </div> </div> </body> </html> </apex:page>
Here is the modified code using native lightningsystem design icons.
Code :
Screenshot :
Hope this helps!
Regards,
Santosh.
All Answers
Here is the modified code using native lightningsystem design icons.
Code :
Screenshot :
Hope this helps!
Regards,
Santosh.