Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal Howtos
  • Drupal Themes
  • X Twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact

Breadcrumb

  1. Home
  2. HowTos
  3. How to disable a particular part in the source code of CSS?

How to disable a particular part in the source code of CSS?

HowTos
March 01, 2023
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
5064

Sometimes you want to disable a part of the CSS code without deleting it. To do so you can put "/*" and "*/" around the code you want to disable. You can use the same method to add headings and comments to your CSS files.

1. Disable CSS code

Disable CSS code

2. Add headings or comments

How to add headings or comments to CSS file

Disabling a particular part in the source code of CSS or Commenting out CSS is a convenient technique to temporarily disable code within your CSS file without actually deleting it. This allows you to:

  • Test different styles: Try various design options by commenting out sections of code and observing the changes in your browser.
  • Debug code: Isolate specific CSS rules that might be causing issues by commenting them out one by one.
  • Preserve unused code: Keep potentially useful code for later use by commenting it out instead of permanently deleting it.
How to disable a particular part in the source code of CSS?
Css

Read more articles

Newer
Views Slideshow is hiding the menu. How to solve the problem?
Older
How to solve the CSS conflict between the Marinelli theme and the Gallery Formatter module?
  • Log in to post comments
Profile picture for user drupal
drupal
5064
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

Get in touch for questions and our Drupal development, design and SEO services.

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element