web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Styling the customer portal navbar left with an image

(0) ShareShare
ReportReport
Posted on by

Hi,

I am trying to add a proper image to the navigation bar of the CRM portal.

I want to stick to the Portal CRM framework and bootstrap way of doing things but I am not yet familair with this way of doing things.

Right now I edited the Content Snippet : Navbar Left, like this

<p><a class="homelink" title="BAAS" href="~/"><img style='width:80px' src='baassmalltalk.png' /></a></p>


I already hesitated to include the image width, but otherwise the screenshot below would not be possible.

3187.NavBar.png

The red arrow is to indicate that I want the logo to FIT in the navbar (preferably without having to specify a width, because of all the screen sizes we have today).

So my question is not so much on how to fix this with general web development skills, more on how to get this done while we keep leveraging the strength of the CRM Portal framework ?

In other words: how much of this instruction: https://getbootstrap.com/docs/3.3/components/#navbar-brand-image should we follow and where should we put the HTML ?

*This post is locked for comments

I have the same question (0)
  • Craig P. Fleming Profile Picture
    950 on at

    Try using the class .img-responsive on your image tag.  This should auto scale the image to the parent element.

  • Community Member Profile Picture
    on at

    Thanks, but this does not help :-(

    I can see the effect in developermode (from bootstrap.min.css): .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img 

    display: block;

    max-width: 100%;

    height: auto;

    But the result is still the same ....

     

     

  • Verified answer
    OrchidC Profile Picture
    200 on at

    Hi,

    I am always using the height only without width to preserve image ratio for the portal logo since navbar has fix height, try having 35px or 40px on the image.

    - Chid

  • Community Member Profile Picture
    on at

    Yes, but than it either gets too small (35px works , that way it is above the line) OR it keeps crossing the grey navbar line below (as in the image). To me it seems there is room voor a 50px  logo in the div containing the image. the space above the logo seems to be "unused"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans