Questions tagged [css]
Anything related to cascading style sheets (CSS) as they specifically relate to Sitecore, official Sitecore modules, CSS file storage in and serving from the Media Library, and beyond. This tag is not meant for generall CSS questions that are not specifically related to Sitecore.
17
questions
0
votes
3answers
70 views
Where to place the CSS file that i want to add for a Sitecore form field
I want to know where to place the CSS file that i want to add for a Sitecore form field. For the WFFM the path was sitecore modules/Shell/Web Forms for Marketers/Themes.
I am using Sitecore 9.1 and I ...
0
votes
1answer
42 views
Css not reflecting in sitecore modal window
I am opening a modal window using
<a href="@Url.Action("SearchModal", "Myctrler",new { id =itemVal })"
onclick="window.open('@...
0
votes
1answer
52 views
Sitecore Forms CSS Scrpt - Dropdown selection
We are using Sitecore 9.2 Forms feature and within form plain fields, actions, analytics are great benefits, but when Job comes to look and feel of the Forms, I see there is a very tricky way to ...
0
votes
1answer
331 views
Rich Text Editor - Apply CSS class around <tr> html tag
I have selected the complete row of the table, Then I have selected a class that changes the background color of the table row.
The background color is not applying to the selected table row, because ...
3
votes
0answers
110 views
Loading Page Specific CSS in Sitecore
We are using Sitecore 8.2 and we have around 10-15 Page templates and all the CSS is bundled in a Global CSS and over the years the CSS file has grown tremendously
resulting in below issues:
We are ...
4
votes
3answers
923 views
Sitecore MVC FieldRenderer.Render - Add and persist inline styles & classes to links in the Experience Editor
I am trying to add custom classes & inline styles to a rendered link field in the experience editor without using Glass.
I have a model the looks like this:
public class Header
{
public ...
1
vote
1answer
89 views
WFFM custom toggle switch [closed]
I am adding toggle switch as a custom field.
Toggle.cs (Toggle C# code)
public class Toggle: Sitecore.Form.Web.UI.Controls.Checkbox
{
}
public class ToggleField : Sitecore.Forms.Mvc....
4
votes
1answer
998 views
Is there a way to put Sitecore Forms fields side by side without CSS
While dragging a form field onto the Sitecore Forms canvas, it seems that, there is no way within the interface to add columns of fields eg. two fields side by side.
Is the only way to do this with ...
6
votes
3answers
280 views
SXA custom css priority level
How do I set the priority of css files so when it optimized all css files, custom css file gets higher priority?
3
votes
1answer
148 views
Sitecore Language wise css changes
We are working on Sitecore "Arabic" and "English" languages. As you know Arabic start from right to left and English start left to right. Due to this reason we have to write two class for same element ...
6
votes
2answers
507 views
Images for different breakpoints
I have read various implementation approaches to render images in desktop/mobile view without cropping/stretching it.
Last time I had a chat with a fellow developer, they insisted on having a ...
3
votes
1answer
2k views
How do I replace css background url with @html.Sitecore().field(“Header Image”)
I am using Sitecore 8.2 and I am working with the RenderingModel. I have a template field called "Header Image" that I would like to render on my Layout. Here is the css
.microsite-banner{
...
3
votes
2answers
2k views
Apply Css class around <p>, Rich Text Editor - Sitecore 8.2u2
EDIT: I'm doing this in the Design part of RTE, NOT Html.
I select a piece of text thats in a <'p>. Then "Apply Css Class" to add a class which changes the background color.
This becomes a <'...
8
votes
3answers
2k views
What's an efficient Frontend development process / workflow for Sitecore?
Does anyone have a Frontend development/prototyping process/workflow that has proven to be effective and efficient?
I have multiple sites running on Sitecore. We are also MVC based.
As a Frontend ...
3
votes
1answer
774 views
SXA custom component, Is my component correct?
First of all, I'm sorry for my question because I'm beginner in Sitecore SXA and in English too. ;)
I'm working on SXA compatible component and I have already advanced well I think but I must have ...
7
votes
1answer
802 views
Sitecore component CSS and script handling in an HTTP/2 environment
First project using Helix coming up. In our previous project we've used HTTP/2 on the CDN, so we have adopted a lot of new best practices.
One of the most important new best practices in HTTP/2 is ...
8
votes
3answers
5k views
How to Render Javascript per page or component?
So I have renderings that depend on specific CSS or specifically Javascript. Do you load the same Javascript on all pages even if the Javascript is for a specific page/rendering, or do you pull in ...