Last post Sep 13, 2012 11:02 AM by amarasat
Sep 12, 2012 12:01 PM|amarasat|LINK
This is a piece of code i have written in HTML
/* image to display */
width:42px; /* width of image */
height:43px; /* height of image */
color:000000; /* text color */
font-size:12px; /* font size */
font-weight:bold; /* font weight */
font-family:Arial; /* font family */
text-decoration:; /* text decoration */
/* border around image if desired */
overflow:hidden; /* so div won't change size */
padding-left:0px; /* left position of text */
padding-top:20px; /* top position of text */
<div class="text_over_image" id="Tag"
style="top:3%; left:1%; position:absolute; background-image: url('WaterTank11.bmp'); width: 170px; height: 78px;">
<input type="hidden" name="Tag" value ="~Enter tag Here~"/>
When i select the div element from the design view and rigth click and copy it, its copying only the div tag but not the contents i it. I can see options to either copy a tag or contents, but how to copy both?
I am trying to copy the element from the design view and paste it on the same deisgn view. It always skips the hidden element contant when i paste it.
Sep 12, 2012 01:25 PM|MattsDotNetUsername|LINK
Copy it in source view instead of design view.
Sep 13, 2012 11:02 AM|amarasat|LINK
Thanks alot for your answer, infact i want to avoid using the source view and copy elements into design view. But i solved it, instead of trying to copy a hidden element, if i try to copy a input text elemeent with display noe, its working fine, that way
the element is still hidden, i can copy it to the design view right away.
I have one more question,
after copying the element and if i paste the element more than once, the id's and names of the second copy are automatically getting incremented. In my above case if paste the element more then once, the names and id's are incrementing as Tag0, Tag1 .....
How dod i avoid this? I dont want the id or name to be incremented automatically. Is there any setting i can change so that they wont get incremented but stay the same as "Tag" irrespective of how many pastes i make.