Bootstrap3 responsive LOGO
Last Post 01/02/2014 10:21 AM by Joseph Craig. 3 Replies.
Author Messages Not Resolved
soulia
Nuker
Nuker
Posts:12


--
11/14/2013 10:45 AM
    Nice tutorial on the Bootstrap3! I'm attempting to create a bootstrap3 implementation of a img-responsive type LOGO. I've added a class="row" with a 2 column layout - col-mid-3 and col-mid-9 above the ContentPane row per the demo. I've added the line to register the LOGO and I've added the following markup:


    <div id="SiteHeaderLeft" runat="server" class="col-md-3">

    <dnn:LOGO runat="server" id="dnnLOGO" />
    <!--/Logo-->

    <div id="SiteHeaderRight" runat="server" class="col-md-9">



    How would I scale this image using bootstrap?

    Thanks,
    Mike
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/16/2013 10:46 AM
    Here is a good place to start: http://getbootstrap.com/css/. Look at the section on responsive scaling of images.

    You will want to look at the page source generated by DNN to make sure that you can apply the class correctly. It may be easier to replace the LOGO skin object with some HTML in your skin file. Just stick in the appropriate img tag and add the classes that you need.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Tim Nguyen
    Nuke Newbie
    Nuke Newbie
    Posts:5


    --
    01/01/2014 9:49 AM
    I am not quite understanding your question. But if you only want to make the logo responsive , just go to Admin/Skin/Logo.ascx and add CssClass="img-responsive" to image tag as following:
    <asp:image id="imgLogo" borderwidth="0" runat="server" enableviewstate="False" cssClass="img-reponsive"/>

    Cheers,
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    01/02/2014 10:21 AM
    Note that this will break when you upgrade DNN. It's might be better to use jQuery to add the class.

    Does anyone have a better suggestions?

    Joe Craig, Patapsco Research Group
    Complete DNN Support


    ---