What is not working? Could you be more specific? It shouldn't be a problem to place a div inside a div, if it's necessary. This is more a question about HTML than Umbraco, if it's only the divs that are causing you problems.
Okay, first of all, it doesn't sound like the best solution with this kind of HTML in a RichText Editor. I would place the three images (as a mediapicker) on your document type and include them on your template via a razor-/xslt-file.
Your html should work correctly when inserted in TinyMCE. Do you copy it in via the HTML-function? How does it look after save/publish? How does the output look in your template?
So, you should create a macro, and select the razor template that is called something like "Insert Media" / "Insert Image" or the likes. That should get you going.
And finally you insert the macro on your template.
div comes inside the div in template
hi,
i m new to umbraco
i have faced a probem in a template. when i placed div inside inside the another div , it's not working.
the code is below
<div id="new">
<div class="new1"><a href="#">banner1</a></div>
<div class="new1"><a href="#">banner2</a></div>
<div class="new2"><a href="#">banner3</a></div>
</div>
thanks
Hi Sobin!
What is not working? Could you be more specific? It shouldn't be a problem to place a div inside a div, if it's necessary. This is more a question about HTML than Umbraco, if it's only the divs that are causing you problems.
/Berntsen
i hav emedded banners in the css and new1 is that css.... instead of banners texts are coming....
So it sounds like your problem is with the CSS then? Is the path to the image correct?
ya...correct.... and i have a doubt that is there any problem in umbraco tinymce if we include div inside div?
Okay, first of all, it doesn't sound like the best solution with this kind of HTML in a RichText Editor. I would place the three images (as a mediapicker) on your document type and include them on your template via a razor-/xslt-file.
Your html should work correctly when inserted in TinyMCE. Do you copy it in via the HTML-function? How does it look after save/publish? How does the output look in your template?
ok..... So i how can i write it in razor/XSLT. Can you just suggest me a tutorial to learn that. it looks like a link.
First of all you need to know Umbraco Document Types:
http://umbraco.com/help-and-support/video-tutorials/introduction-to-umbraco/sitebuilder-introduction/document-types.aspx
Add three Media Pickers to your doctype. Then you need to show the media saved to the media pickers. This is done via your Macro:
http://umbraco.com/help-and-support/video-tutorials/introduction-to-umbraco/sitebuilder-introduction/what-are-macros.aspx
So, you should create a macro, and select the razor template that is called something like "Insert Media" / "Insert Image" or the likes. That should get you going.
And finally you insert the macro on your template.
Feel free to ask, if you need more help.
And you could check out this package too:
http://our.umbraco.org/projects/developer-tools/cultiv-razor-examples
There's a Media Picker example as far as I remember.
ya..... thanks Berntsen.....
http://our.umbraco.org/forum/getting-started/installing-umbraco/20245-[HttpException-(0x80004005)-uComponents?p=0#comment99024
help me to solve this ...
hi,
i am new to umbraco.
i have faced a probem in a RichTextEditor. when i placed div inside inside the another tag,RichTextEditor Remove Anchor tag
the code is below
<a href="home.aspx">
<div class="control_third">
<div class="text">
<p>
ISO 14001 and
<br />
9001 Assessment
<br />
& Compliance
<br />
Support
</p>
</div>
</div>
</a>
Thanks.
is working on a reply...