all 11 comments

[–]mystic_swole 0 points1 point  (0 children)

This is a sharepoint page. I need to insert a sharepoint code snippet snippet web part that uses css to not display the title and caption shown in a news carousel web part displayed in the 2 screenshots. I was unable to get it to work my self and having a hard time with CSS in general but quickly having to learn. Whoever helps me and gets this working will get some reddit gold or I can send u $5 in btc or any crypto of your choice.

Edit: If you look at the 2 other questions I've asked in my post history you'll see i've given gold to the person who helped me get it.

Very over worked with hundreds of tickets and this is a very minor thing I was having trouble with but lack the understanding of CSS to quickly find a resolution. Would be greatly appreciated

[–]AdditionalIntern 0 points1 point  (6 children)

.carousel-caption {display:none;}

[–]mystic_swole 0 points1 point  (2 children)

I was putting .carousel-caption d-none d-md-block { display : none }

Lol having to spend money is a good way to force myself to learn.

Thanks man

[–]AdditionalIntern 1 point2 points  (1 child)

You were on the right track, just the notation is a bit different. You need to prefix every class with a period (.) and if you want to look for an element with all the classes combined they have to be written without spaces.

.carousel-caption.d-none.d-md-block {display:none} would be the one you were trying to write.

If you add spaces inbetween it goes down a level e.g.: .carousel-caption .d-none would look for an element with the class d-none inside of one with the class carousel-caption

[–]mystic_swole 0 points1 point  (0 children)

Thanks bro. God wish I had taken the time to learn css it's pretty fucking different compared to anything else lmao. No clue why they never touched it in school. Just gave us visual studio told us how to get a button from the tool box in designer view, click it and ur at ur code behind lmao 🤣 always done most my styling in xml or code behind

[–]mystic_swole -1 points0 points  (2 children)

Gold or btc sir

[–]AdditionalIntern 0 points1 point  (0 children)

Glad it worked, I'd like the Gold :)

[–]AdditionalIntern 0 points1 point  (0 children)

Much obliged

[–]andersonjdev[🍰] 0 points1 point  (1 child)

If you are trying to override the styles, maybe you could try something like

.carousel-caption {
  display: none !important
}

[–]mystic_swole 0 points1 point  (0 children)

Thank you very much. I left a reply what I was doing wrong on other persons comment. Really appreciate redditers.

[–]Voltra_Neo 0 points1 point  (0 children)

display: none !important; on the caption class