SID-01958: Applying Background colors
| Status: |
Answered |
TWiki version: |
5.1.3 |
Perl version: |
|
| Category: |
CategoryRendering |
Server OS: |
Windows 7 |
Last update: |
10 years ago |
I have a question w.r.t backgrounds applied. Whenever I apply a background to content in the
middle of the paragraph
, it starts and ends in a new line. Is there any reason why this happens? This does not happen when I
change the font color . Is there a workaround or a way to stop this from happening?
--
Bala Mahadevan - 2014-07-31
Discussion and Answer
This is a block vs inline CSS question. Colors like
%BLUE% are defined as inline elements, background colors like
%REDBG% are defined as block elements. For inline background elements you'd need to define a new set of background color settings, such as
%REDBGI% (red background inline). Best to define them as
inline-block. Study CSS.
For others, above red background is defined as
%REDBG% ...text... %ENDBG%, blue color test is defined as
%BLUE% ...text... %ENDCOLOR%.
--
Peter Thoeny - 2014-07-31
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.