Tags:
create new tag
view all tags

SID-01958: Applying Background colors

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Applying Background colors
SupportCategory CategoryRendering
TWiki version 5.1.3
Server OS Windows 7
Web server

Perl version

Browser & version Mozilla Firefox 31.0.0.0, Google Chrome 35.0.1916.513
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2015-12-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.