You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

30
31
31
32
### Title
32
33
33
-
To apply custom CSS styles to an image within a `CardImage` component, define a CSS class and apply it using the `CssClass` property. This allows for advanced styling such as background images, specific sizing, or positioning.
34
+
Card image is supported to include a `Title` property for the image. By default, Title is placed over the image on left-bottom position with overlay.
34
35
35
36
```cshtml
36
37
@using Syncfusion.Blazor.Cards
37
-
38
-
<SfCard>
39
-
<CardHeader Title="JavaScript"></CardHeader>
40
-
<CardContent>
41
-
JavaScript Succinctly was written to give readers an accurate, concise examination
42
-
of JavaScript objects and their supporting nuances, such as complex values, primitive
43
-
values scope, inheritance, the head object, and more.
Copy file name to clipboardExpand all lines: blazor/card/header-content.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,21 +36,19 @@ For adding header to the Card, Title Property.
36
36
37
37
* Add `SubTitle` Property inside the header caption element for adding Title.
38
38
39
-
### Image
39
+
### Header with Image
40
40
41
41
Card header has an option for adding images in the header. It is aligned with either before or after the header based on the HTML element positioned in the header structure. The header image can be added by `ImageUrl` component which can be placed before or after the header caption wrapper element.
42
42
43
43
```cshtml
44
44
@using Syncfusion.Blazor.Cards
45
45
46
46
<SfCard ID="HugeImage">
47
-
<CardHeader Title="Laura Callahan" SubTitle="Sales Coordinator and Representative" ImageUrl="images/cards/football.png" />
48
-
</SfCard>
49
-
<SfCard ID="SecondCard">
50
-
<CardHeader Title="Laura Callahan" SubTitle="Sales Coordinator and Representative" ImageUrl="images/cards/football.png" />
47
+
<CardHeader Title="Laura Callahan" SubTitle="Sales Coordinator and Representative" ImageUrl="https://blazor.syncfusion.com/demos/_content/blazor_server_common_net9/images/cards/profile-four.png" />

54
52
55
53
## Content
56
54
@@ -62,15 +60,16 @@ The `CardContent` component is used to display the main textual or HTML content
62
60
@using Syncfusion.Blazor.Cards
63
61
64
62
<SfCard ID="HugeImage">
65
-
<CardHeader Title="Laura Callahan" SubTitle="Sales Coordinator and Representative" ImageUrl="images/cards/football.png" />
63
+
<CardHeader Title="Laura Callahan" SubTitle="Sales Coordinator and Representative" ImageUrl="https://blazor.syncfusion.com/demos/_content/blazor_server_common_net9/images/cards/profile-four.png" />
66
64
</SfCard>
67
65
68
66
<SfCard ID="SecondCard">
69
67
<CardContent Content="Laura received a BA in psychology from the University of Washington. She has also completed a course in business French. She reads and writes French."/>
0 commit comments