Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sobin 25 posts 46 karma points
    Dec 01, 2011 @ 08:00
    Sobin
    0

    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 

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Dec 01, 2011 @ 09:50
    Rasmus Berntsen
    0

    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

  • Sobin 25 posts 46 karma points
    Dec 01, 2011 @ 10:02
    Sobin
    0

    i hav emedded banners in the css and new1 is that css.... instead of banners texts are coming....

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Dec 01, 2011 @ 10:05
    Rasmus Berntsen
    0

    So it sounds like your problem is with the CSS then? Is the path to the image correct? 

  • Sobin 25 posts 46 karma points
    Dec 01, 2011 @ 10:07
    Sobin
    0

    ya...correct.... and i have a doubt that is there any problem in umbraco tinymce if we include div inside div? 

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Dec 01, 2011 @ 10:14
    Rasmus Berntsen
    0

    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?

  • Sobin 25 posts 46 karma points
    Dec 01, 2011 @ 10:30
    Sobin
    0

    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.

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Dec 01, 2011 @ 10:39
    Rasmus Berntsen
    0

    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.

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Dec 01, 2011 @ 10:43
    Rasmus Berntsen
    0

    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.

  • Sobin 25 posts 46 karma points
    Dec 01, 2011 @ 10:45
    Sobin
    0

    ya..... thanks Berntsen.....

  • Sobin 25 posts 46 karma points
    Dec 06, 2011 @ 07:28
  • Manish 3 posts 23 karma points
    Apr 23, 2012 @ 08:59
    Manish
    0

    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 />
                                  &amp; Compliance
                                  <br />
                                  Support

                            </p>
                       </div>

             </div>

    </a>

    Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft