All Questions
986
questions
0
votes
1
answer
83
views
MudBlazor - Page layouting
I am currently trying to create a MudBlazor WebApp.
As I am quite new to MudBlazor I try to figure out how the spacing and page layouting works.
So i took a very basic layout from the MudBlazor ...
2
votes
1
answer
80
views
Styling issue in Blazor/Razor components when using .razor.css
I'm facing an issue when trying to apply styles to Blazor/Razor components when I move the styles to a separate CSS file. In my project, I define styles in a .razor component, and when applying styles ...
0
votes
2
answers
34
views
CSS in cshtml for MVC : Conditionnal formatting based on a keyword in text
I am implementing sorting for ASP.Net MVC Core, and I should like to put a background colour to the header of the column on which the sorting is based.
On other threads I saw using scripts could be a ...
0
votes
1
answer
48
views
Blazor Development: How to Quickly Navigate to CSS Class Definition
I come from a WPF/UWP dev background, and as such, I'm used to the "XAML-way" of doing things when approaching Razor and CSS development in a Blazor context.
Perhaps I was spoiled in this ...
0
votes
1
answer
44
views
Using a spinner without Ajax
Well, I hope you can help me, this is giving me a lot of trouble
I'm using Razor with Net 8 MVC and I want a spinner to appear in two situations:
The first, before loading the page.
The second is in ...
1
vote
1
answer
95
views
How can I add a specific css class only to the last Blazor component created dynamically without using JS Interop
I have a couple of simple components that can be structured like a table. Where I want to add borders on a property set to true. The problem I have is that I somehow have to find the last component(...
0
votes
0
answers
92
views
Browsers renders grid-template-columns: repeat(1, 0fr); as grid-template-columns: repeat(1, 0);
In my ASP.NET MVC app I need the buttons to have the same width. If one button is wider than the other, the smaller one stretches to the same width as the larger one.
For this I wrote next CSS code:
@...
0
votes
0
answers
61
views
ASP.Net Core MVC Update head tag at end of rendering
I have an ASP.Net Core MVC application, with a default Layout. Some components are built with Vue.js and handled by Vite.
Since there are separate entries, at the moment of rendering the head tag in ...
0
votes
1
answer
84
views
In Razor, problem with Html.Raw() when given an element having a class
In a Razor project I have
@{
string elem="<span class=\"spec\">comment</span>";
}
<div>@Html.Raw(elem)</div>
and
.spec{
color: red;
}
The color is ...
2
votes
1
answer
52
views
Underlined text should have prolonged underline for its image on hover
I'm trying to implement underlying on image on hover link and image.
Here is what try to achieve:
The issue is when I hover on element I see two lines but should be one on hover both link and image, ...
0
votes
0
answers
23
views
Slideshow no run on .cshtml file
the code below should display a slideshow in a cshtml file with the sources below, but the slideshow is not displayed but a list of values is printed in the html. How can I display an automatic ...
0
votes
0
answers
26
views
Layering divs using position and z-index is not working [duplicate]
Using cshtml and trying to make a text appear in front of an image and it isn't working.
I am using a third party commercial tool to generate what I need from the cshtml, so I supposed it just doesn't ...
-1
votes
1
answer
33
views
Background image without using background-image
I'm using a third party commercial framework which doesn't seem to read the background-image property, yet I need to place an image at the background of the product I'm creating.
I tried using the z-...
0
votes
2
answers
35
views
Eliminate whitespace between divs generated from loop
I have a Razor page that I'm attempting to show <div> elements in rows using Bootstrap. Each <div> is generated programmatically like this:
@foreach (var item in Model)
{
<div class=...
0
votes
0
answers
51
views
Conditionally change color of html element
How can I conditionally change the color of this html element:
so far I have tried this @{
string headerBackground = ViewBag.IsPremium && !ViewBag.IsXUser ? "#0272B9" : "#...