programming4us
programming4us
WEBSITE

Smashing Html5 : Working with Color Values - Integrating Your Color Palette with Your Web Page

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

Having a color palette doesn’t mean that your page will look good — even color-wise. Within the same palette, some colors go together better than others. For example, a midtone background may not provide the contrast you need for other midtone colors, so a dark or light color in the palette may be a better choice. Figure 1 shows the color palette developed around a logo that will be used as the page’s palette.

977279-fg0409.eps

Figure 1: A logo-based color palette.

The hexadecimal integer values for the four colors are pasted right in with the CSS3 at the top of the HTML5 page for reference. The following script employs the colors so that they work with the logo and rest of the page.

<!DOCTYPE HTML>

<html>

<head>

<style type=”text/css”>

/* 027333,7FA646,D9B448,F2DFA7 */

body {

margin-left:1em;

background-color:#F2DFA7;

color:#027333;

font-family:Verdana, Geneva, sans-serif;

font-size:11px;

}

h1 {

font-family:Tahoma, Geneva, sans-serif;

color:#7FA646;

}

h2 {

font-family:”Lucida Sans Unicode”, “Lucida Grande”, sans-serif;

color:#7FA646;

background-color:#D9B448;

}

div

{

text-align:center;

}

a {

font-family:Arial, Helvetica, sans-serif;

text-align:center;

font-size:10px;

text-decoration:none;

background-color:#027333;

color:#F2DFA7;

}

a:hover {

color:#D9B448;

}

</style>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8”>

<title>Arranging Colors</title>

</head>

<body>

<div><nav>

<a href=”#”> &nbsp;Link 1 | </a>

<a href=”#”> &nbsp;Link 2 | </a>

<a href=”#”> &nbsp;Link 3 &nbsp;</a>

</nav> </div>

<img src=”Sandlightlogo.gif” alt=”Logo” align=”left”>

<header><h1>&nbsp; &nbsp;&nbsp;Welcome</h1></header>

<br><br>

<article>

<h2>&nbsp;We are all about...</h2>

Sandlight Productions is an international development company that specializes in HTML5/CSS3, streaming video, mobile device development, online education, ActionScript 3.0 architecture, Flash, and PHP.

</article>

<br>

<footer><div>

<nav>

<a href=”#”> &nbsp;Link 1 | </a>

<a href=”#”> &nbsp;Link 2 | </a>

<a href=”#”> &nbsp;Link 3 &nbsp;</a>

</nav>

</div></footer>

</body>

</html>

The CSS3 script uses the property a:hover to change the property when the mouse is over the link. In the <a> tag CSS3 definition, the text-decoration is set to none, which means that the text link will not be underlined. Without the underline, you want to do something to alert the user to the presence of a link; you do that using the hover property. Changing the color of the link text subtly yet effectively shows the user that the mouse is over the link. Both the initial color and the hover color are part of the palette. So, in setting up the page, remember that more than just the <body> and <h> tags use the color palette.

This particular design is focused on mobile devices (see the right side of Figure 4-10), but it should work with computer and table screen as well (see the left side of Figure 2).

Of course, your page is always going to look better if you have a Web designer do the page design. However, even developers can make it look better by paying attention to the color combinations.

977279-fg0410.eps

Figure 2: A color scheme applied to a page.

Other  
  •  Smashing Html5 : Working with Color Values - Creating a Color Scheme
  •  Smashing Html5 : Working with Color Values - Adding Transparency to Color
  •  Smashing Html5 : Working with Color Values - Understanding RGB Color (part 2) - RGB decimal integer settings
  •  Smashing Html5 : Working with Color Values - Understanding RGB Color (part 1) - Using names, RGB and HSL percentages
  •  Web Security Testing : Automating Specific Tasks with cURL - Impersonating a Specific Kind of Web Browser or Device
  •  Web Security Testing : Automating Specific Tasks with cURL - Checking for Directory Traversal with cURL
  •  Web Security Testing : Automating Specific Tasks with cURL - Following Redirects Automatically, Checking for Cross-Site Scripting with cURL
  •  Web Security Testing : Automating Specific Tasks with cURL - Fetching Many Variations on a URL
  •  Web Security Testing : Automating Specific Tasks with cURL - Fetching a Page with cURL
  •  Sharepoint 2013 : SharePoint Publishing Infrastructure (part 6) - Check In/Out, Versioning, and Content Approval
  •  
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us
    programming4us
     
     
    programming4us