Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Is it recommended to customize a built-in CSS class specification inside my custom CSS file

$
0
0

I am working on a team site collection which have many lists, and i want to expand the list's fields width inside the Create & Edit forms. Now using some tools i have noted that there is a class named ".ms-formbody" which have a width of 350px. i manually update its width to be 870px instead of 350px and the fields where expanded as required. so instead of modifying all the edit and create forms manually one by one,  i wrote the following inside my custom css file

td.ms-formbody
{

width:870px;


}

and all the Edit and Create list forms got the effect. so my question  if it is recommended to do such as chnage inside my custom CSS ?second question how i can be sure that no other components uses the same .ms-formbody class toaovid modifying unrelated components (of course inside my above css selector i mention that the class should be applied to a td only before expanding its width to avoid affecting any components not inside the edit & create forms)?

thanks in advance for any help...



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>