Designing a custom CSS for enhancing the look of the orchard menu

Right now, I am in the process of implementing a layout that is already established in an MVC4 project.

I am facing challenges in figuring out how to create a custom menu in the latest version of Orchard (using the source version so it runs in Visual Studio).

The main issue I am encountering is determining where the CSS should be applied. After searching on Google, the only information I could find was about modifying the Menu.cshtml file (one in core/shapes and one in the admin theme, but I am unsure which one is the correct one). I cannot seem to locate any traces of CSS anywhere.

This is what my menu looks like in HTML:

<div id="cssmenu" class="fixedContentSize">
    <ul>
        <li class='active '><a href='index.html'><span>Home</span></a></li>
        <li class='has-sub '><a href='#'><span>Dojo</span></a>
        <ul>
                <li class='has-sub '><a href='#'><span>Test</span></a>
                <ul>
                    <li><a href='#'><span>Sub Item</span></a></li>
                    <li><a href='#'><span>Sub Item</span></a></li>
                </ul>
                </li>
                <li class='has-sub '><a href='#'><span>Test2</span></a>
                <ul>
                    <li><a href='#'><span>Sub Item</span></a></li>
                    <li><a href='#'><span>Sub Item</span></a></li>
                </ul>
                </li>
            </ul>
        </li>
        <li><a href='#'><span>Media</span></a></li>
        <li><a href='#'><span>Links</span></a></li>
        <li><a href='#'><span>About</span></a></li>
        <li><a href='#'><span>Contact</span></a></li>
    </ul>
</div>  

Answer №1

The application of this is visible in the theme's CSS file. Check out the site.css within the theme machine theme for a demonstration.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Struggling to develop a C# (asmx) Web service utilizing the POST method and accepting FormData input

Could you kindly share a link with me so that I can follow it to create my first web service? This service needs to take data in form data and output it in JSON using the POST method. I am developing this service for both Android and iOS apps. Note: I am ...

Header text aligned with image to accommodate parent size

Having trouble aligning an image/logo next to my header text while maintaining its aspect ratio and fitting within the container size. The goal is to have both the text and image horizontally centered. The parent div cannot have a fixed height as it needs ...

Can you please provide the CSS code that would style this table in a similar manner?

I am interested in utilizing the design of this table, but how can I update it to meet CSS standards and HTML5 equivalents? <html> <head></head> <body> <table border="1" bordercolor="#000000" style="background-color:#ffffff" w ...

Converting JSON to Objects while changing Keys: A Step-by-Step Guide

"Result": { "AKJB0000001": { "BANK": "AKOLA JANATA COMMERCIAL COOPERATIVE BANK", "IFSC": "AKJB0000001", "BRANCH": "RTGS-HO", "ADDRESS": "JANVAIBHAV,OLD COTTON MARKET,AKOLA,PIN 444001", "CONTACT": null, " ...

Is there a way to adjust paragraph sizes in CSS flexbox so they scale with the font size?

After spending hours trying to figure this out on my own, I finally caved and registered on StackOverflow. Despite Google providing plenty of related questions and examples, I still can't find a solution to my specific problem. The issue at hand is c ...

Having trouble achieving the desired effect with inline block

I'm having some trouble creating a simple store page. One of the products is supposed to look like this: https://i.sstatic.net/JLlua.png However, it's currently showing up like this: https://i.sstatic.net/hHYUm.png I've been attempting t ...

The vertical tab layout in HTML and CSS is experiencing an issue where the active tab is not being shown above the

Currently, I am developing a web page featuring vertical tabs where each tab corresponds to an image and some content. However, the problem lies in the fact that the active tab is not displaying above the image as expected. In my attempt to resolve this i ...

Alter the td styling depending on the value using AngularJS

I need to dynamically change the style of each td in a column based on its value. There are five different statuses, so each status should have a unique border-color and font-color assigned to it. How can I achieve this using Angular script without hard-co ...

The CSS does not display properly on iPad or mobile devices

Recently, I had the opportunity to design a website for a local music school. This project was a great learning experience that has shown me the importance of continuous improvement and practice. Check out the site here Initially, I wanted to make the w ...

Placing error notifications beneath my table rows for a more polished appearance

In the process of creating a review page for my app that showcases uploaded files, I've encountered an issue. Whenever a user uploads files with errors, I want to display a warning message below each specific file. Currently, I'm able to show the ...

How can I determine if a page is being rendered in Standards mode or Quirks mode by IE7?

Having some issues with CSS on a webpage. The code is valid and adheres to Strict HTML standards. It displays correctly in most browsers, but I'm experiencing problems in IE (specifically version 7). Is there a way to determine if the page is being re ...

Tips for executing a function on a specific class selector using the document.getElementsByClassName method

When I click on a specific class, I want to implement a fade-out function in JavaScript. However, I am struggling to make a particular class fade out successfully. I attempted to use the this keyword, but it seems like I might be using it incorrectly bec ...

CSS to resolve HTML alignment problems

I am new to HTML and CSS, trying to practice formulating a few things but my efforts are proving futile. Below is the code and images for your reference. I would appreciate your opinion. .container { display: block; width: 200px; height: 120px; } ...

Stylish curved bottom border

Is it feasible to create this footer using just CSS? https://i.sstatic.net/b33w4.png Appreciate the help! ...

Stable header that jumps to the top when scrolled

I have implemented the JavaScript code below to set the header to a fixed position when it reaches the top of the page so that it remains visible while the user scrolls. Everything appears to be functional, but the header movement is abrupt and not smooth. ...

Ways to extract data from a JSON file using jQuery and assign them as text values?

I have a data table that I serialize into JSON and then parse in my view using jQuery to access the values. However, when I use document.getElementById('Name').value = UserInfo.Name; the value of Userinfo.Name = null, I'm having trouble ...

Triggering an event with two clicks in JQuery

I'm facing an issue with firing 2 click events in jQuery to remove files when a RadioBoxList is selected. The buttons on the page are calling the same function as delete_Click in the code behind. Here is my current code: <asp:Button ID="delBtn1" ...

Using the power of Selenium's XPath, we can easily navigate through a table to access

Looking for assistance in creating selenium xpath for the various column links within a table. Each row has a unique identifier and contains information about a product, including the name. Based on the product name, I need to locate other links within the ...

Transform the array into a string starting from a specific index

I have a quick question. I am trying to convert a string array with a length of 5 into a single string, but specifically from a certain index (for example starting from Array_temp[2]) until the end of the array. I have tried using the code below, which c ...

Only a select few expandable elements in the jQuery accordion

How can I create an accordion menu with only a few expandable options? I am looking to include the following items in my menu: Home, Support, Sales, Other The "Home" option is just a link without any sub-menu. Clicking on it should direct users to a spec ...