banner



How To Set Background Color In Jsp

Background Colors#

Many solid background colors are available in the Haddock Template. They all starting time with the prefix bg- :

          %%bg-info /%  using the predefined context colors  %%bg-ruddy /%  for the standard html colors        

bg-primary


bg-info


bg-success


bg-warning


bg-danger

bg-aqua


bg-blue


bg-navy


bg-teal


bg-greenish


bg-olive


bg-lime

bg-yellowish


bg-orange


bg-red


bg-fuchsia


bg-purple


bg-maroon

bg-white


bg-silver


bg-grayness


bg-black

Background gradients and patterns#

CSSBackground Gradients

With %%add-css you can define a groundwork gradient, with gradual transition from ane color to another. Once divers, you lot can use it to decorate parts of your content.

%%add-css   .bg-mygradient {          groundwork: linear-gradient(90deg, #69b7eb, #b3dbd3, #f4d6db);   } /% %%bg-mygradient   <page content> /%            

For a quick commencement, use the examples from Background Gradients which y'all can include in your page similar this: %%add-css [CSSBackground Gradients] /%


CSSBackground Patterns

Creating sophisticated background patterns is easy, through the wonders of CSS3.

More examples can be plant in Groundwork Patterns, which y'all tin can include in your page like this:

%%add together-css [CSSBackground Patterns] /%   %%bg-pattern-1   <page content> /%            

Background Images #

Unremarkably images are merely function of the page content. However, with %%bg you can too put them equally part of the page background. Doing so volition allow the page content (text, tables, other images) to be overlayed over the background. (more about how to improve the eligibility of text below)
Note that in a browser, background images cannot be copy/pasted by the user.

Markup:

%%bg [<image>] /%   %%bg [{Epitome src='image-url' }] /%  [{Image src='image-url' grade='bg' }]        

CALIFORNIA
Yosemite park

Image:https://source.unsplash.com

Size & Position#

Background images are positioned past default in the center of the container, but other positons are possible besides.

Background Styles/dog.png %%bg


Background Styles/dog.png %%bg.left


Background Styles/dog.png %%bg.right


Background Styles/dog.png

%%bg.summit


Background Styles/dog.png %%bg.bottom

Haddock Styles Test page/poppy.jpg

Poppy (centered)

As a general rule, the size of the original epitome is kept. If the image is also large to fit, if will be clipped. You can rescale the image with %%bg.cover or %%bg.comprise.

Contain#

Use

%%bg.incorporate

to scale the image every bit large every bit possible and maintain its aspect ratio (image doesn't get squished). The image is letterboxed inside the container.

When the image and container have unlike dimensions, the empty areas (either top/bottom of left/right) are filled with the background-color.


Haddock Styles Test page/poppy.jpg

In Flanders fields the poppies accident
Between the crosses, row on row,
That mark our place; and in the sky
The larks, still bravely singing, fly
Deficient heard amid the guns below.
past John McCrae, May 1915

Embrace#

Haddock Styles Test page/poppy.jpg

In Flemish region fields the poppies blow
Between the crosses, row on row,
That mark our place; and in the heaven
The larks, still bravely singing, fly
Deficient heard amid the guns below.
by John McCrae, May 1915


Utilise

%%bg.embrace

to scale the paradigm as large as possible and maintains its aspect ratio (prototype doesn't get squished). The image "covers" the unabridged width or height of the container. When the image and container take different dimensions, the image is clipped either left/correct or top/bottom.

Fixed #

By default the background paradigm scrolls with the content of the page.

When using %%bg.stock-still the background remains fixed with regard to the viewport.

Therefore, scrolling will affect only the content of the page; the background remains fixed. During scrolling dissimilar parts of the background will be revealed.


a p a c h eastward

jspwiki

Eligibility of text#

Depending on the color range or brightness of the groundwork image, the readability of the overlay content of the folio may be affected. Here are some means to improve the eligibility of the folio content.

Text Styles#

Change the colour of the text: text-white, text-black.


Haddock Styles Test page/poppy.jpg

Of all the fish in the sea, I'm so glad you swam to me



Haddock Styles Test page/poppy.jpg

Of all the fish in the sea, I'm and so glad yous swam to me


Add shadow to the text: text-white.shadow and text-black.shadow.


Haddock Styles Test page/poppy.jpg

Of all the fish in the body of water, I'chiliad so glad you swam to me



Haddock Styles Test page/poppy.jpg

Of all the fish in the body of water, I'm so glad you swam to me


Epitome Styles #

Adding Epitome Styles to the background can change its effulgence, colour, saturation, etc. and meliorate the contrast with the overlay content.
Possible styles: night, light, grayscale, sepia, saturate-2, saturate-viii, hue-rotate-ane, hue-rotate-ii, hue-rotate3, capsize, brightness, contrast-2, contrast-x, mistiness.
Yous tin can besides change the management or position of the background image with fliph, flipv, fliphv.

Night

Make the background slightly darker to increment readability of the (automatically ready to) white text.

%%bg.night [Haddock Styles Test page/poppy.jpg]/%          

Haddock Styles Test page/poppy.jpg

In Flanders fields the poppies blow
Betwixt the crosses, row on row,
That marker our place; and in the sky
The larks, still bravely singing, fly
Scarce heard amid the guns beneath.
by John McCrae, May 1915

Haddock Styles Test page/poppy.jpg

In Flanders fields the poppies blow
Betwixt the crosses, row on row,
That marking our place; and in the sky
The larks, yet bravely singing, fly
Scarce heard among the guns below.
by John McCrae, May 1915


Calorie-free

Make the background slightly lighter to increase readability of black text.

%%bg.light [Haddock Styles Test page/poppy.jpg]/%          

Background lighter, text colour blackness

Haddock Styles Test page/poppy.jpg

In Flanders fields the poppies blow
Betwixt the crosses, row on row,
That mark our place; and in the heaven
The larks, still bravely singing, fly
Scarce heard amidst the guns below.
by John McCrae, May 1915

Blithe background#

The Ken Burns effect is a blazon of panning and zooming effect used in video product from still imagery. The proper noun derives from extensive use of the technique by American documentarian Ken Burns."
– wikipedia.org


Haddock Styles Test page/poppy.jpg

In Flanders fields the poppies blow
Between the crosses, row on row,
That mark our place; and in the sky
The larks, even so bravely singing, wing
Scarce heard amid the guns below.
by John McCrae, May 1915

Summary#

  • %%bg-<color>
  • %%bg-<gradient>
  • %%bg-<pattern>
  • %%text-white
  • %%text-black
  • .shadow

  • %%bg
  • %%bg.left
  • %%bg.correct
  • %%bg.peak
  • %%bg.bottom

  • %%bg.comprehend
  • %%bg.comprise
  • %%bg.stock-still

  • %%bg.calorie-free
  • %%bg.dark
  • %%bg.kenburns
  • More than Image Styles

See Haddock Template, Haddock Styles, Paradigm Styles, Background Gradients, Groundwork Patterns

How To Set Background Color In Jsp,

Source: https://jspwiki-wiki.apache.org/Wiki.jsp?page=Background%20Styles

Posted by: morgandount1942.blogspot.com

0 Response to "How To Set Background Color In Jsp"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel