Design and CSS styles
Version 7.x > Design and CSS styles > page stiles in edit mode View modes: 
User avatar
Member
Member
pavel.1991-tut - 3/27/2013 5:39:18 AM
   
page stiles in edit mode
I have site styles. There is a site page which has areas with some text and these areas are hidden(display:none in site styles). In edit mode this page has editable text web-part in these areas. And I can not edit text in these editable text web parts because of site styles(these areas are hidden even in edit mode). What should I do to see these areas?

And another question, maybe there are any another way to add text to any site place by content editor. Now I use editable web-part to do this. But maybe there is another tools for this?

User avatar
Kentico Support
Kentico Support
kentico_filipl - 3/27/2013 9:44:23 AM
   
RE:page stiles in edit mode
Hello,

Unfortunately, you cannot edit the text of Editable text web part which is positioned inside an area on which {display: none} is applied. That is how HTML and CSS works - you cannot hide a parent element and still display a child element. The only way how a similar functionality can be achieved is to set {visibility: hidden;} for parent and {visibility: visible;} for child (i.e. your Editable text web part). However, the parent will take up the space it is supposed to but the content will be invisible.

On the other hand, a better solution will be to move the Editable text web part outside of the area that you want to be hidden.

Best regards,
Filip Ligac