7

I have not tried this myself, created on the fly from this link, but should work <lightning:card iconName="standard:scan_card"> <aura:set attribute="title"> <a href="http://www.yahoo.com">{!v.myTitleName}</a> </aura:set> <!-- actions and body markup here --> </lightning:card>


6

The cards should be in their own layout boxes (instead of being the layout boxes), and should not be floating. Elements that restrict size changes (e.g. slds-size_1-of-3) should be wrapped around whatever it is you're trying to size. Most of the time it doesn't matter, but it helps to get in the habit of doing so, and doing so means using lightning:...


3

if you are referring to the top padding: then you can scope your css as follows: .THIS header.slds-card__header.slds-grid{ padding-top:0px; } Feel free to modify it as needed. If you have other cards, it will affect all of them If you have some cards that would not need the change in styling, i would suggest adding a custom class to your title and ...


2

You can split your card into sections using aura:set's as specified in the documentation (ex, ehader, body, footer), you might want to refactor your code to something similar to what is provided in the documentation: <lightning:card> <aura:set attribute="title"> <lightning:icon iconName="utility:connected_apps" size="small"/> ...


2

When you use anything other than "static" positioning mode, such as "fixed", the width is no longer constrained to the parent's bounding box. What's happening here is that you're creating a DOM element that exceeds the width of the page, and by default, we don't get scroll bars. For example, when you set "width: 100%; margin: 2em", in absolute, fixed, and ...


2

Note that Anchor Tag: <a> should not use href's according to the documentation (for your specific use case), and you should instead leverage native events such as force:navigateToSObject to redirect users towards record's as follows: in your component: <a onclick="{!c.handleClick}">link to record</a></p> controller.js ({ ...


Only top voted, non community-wiki answers of a minimum length are eligible