1

Error: Element type "div" must be followed by either attribute specifications, ">" or "/>".

<apex:page standardController="ADSS_Platform_Account__c" showHeader="false" standardStylesheets="false">   
    <div style="font-family: sans-serif; font-size: 12px;color: #ffffff;" "height: 100%" class="bodyDiv"  onclick="resizeFrame();">  
        <c:IBHierarchyTree currentId="{!ADSS_Platform_Account__c.id}"/>   
    </div>  
</apex:page>

I removed left angular brackets because i was not able to post my code.

5
  • Please correct the formatting of your code. Sep 15, 2015 at 11:23
  • @vamsi how to add VF page code, please suggest so that next time I will add the formatted code
    – C0DEPirate
    Sep 15, 2015 at 11:31
  • Just add 4 spaces before each line. See the StackExchange manual and FAQ. Sep 15, 2015 at 11:34
  • you need to use the formatting toolbar options in the editor where you paste your code. select your code and click the { } toolbar button to format the code Sep 15, 2015 at 11:35
  • cool, I got it now!!
    – C0DEPirate
    Sep 15, 2015 at 11:36

2 Answers 2

3

height: 100% falls under style-size attribute string , thus

" font-family: sans-serif; font-size: 12px;color: #ffffff; " and " height: 100% " should be written as same string as ,

style=" font-family: sans-serif; font-size: 12px;color: #ffffff;height: 100% "

Please hit like , if you find the information relevant.

2
  • Thanks for the explanation!! am not able to set color as black for this as mentioned in style it is showing blue !!
    – C0DEPirate
    Sep 15, 2015 at 11:25
  • Answer - use color: #000000 / color:black Explaination - The color combination varies from #000000 (BLACK) to #FFFFFF (WHITE). So, you should use #000000 to have black color font or you can simply write black also. Thus , just change the style attribute from style="font-family: sans-serif; font-size: 12px;color: #ffffff;height: 100%" to div style="font-family: sans-serif; font-size: 12px;color: #000000;height: 100%" or div style="font-family: sans-serif; font-size: 12px;color: black;height: 100%"
    – Rajeev
    Sep 15, 2015 at 12:51
5
div style="font-family: sans-serif; font-size: 12px;color: #ffffff;" "height: 100%" class="bodyDiv" onclick="resizeFrame();">

Change this line into

div style="font-family: sans-serif; font-size: 12px;color: #ffffff;height: 100%" class="bodyDiv" onclick="resizeFrame();">
1
  • Thank you Tushar, but I am not sure what is the change? and one doubt if you don't mind, I am not able to set color as black for this as mentioned in style
    – C0DEPirate
    Sep 15, 2015 at 11:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .