Dear web2py Community,

I am trying follow the book Edition 6 to customize the default layout, 
changing colors and background 
images<http://web2py.com/books/default/chapter/29/05/the-views#Customizing-the-default-layout>
.

I'd like to change the navbar background and the [.header h1; .statusbar; 
.footer; ]  selectors to darkred == #880000.

Under "Customizing the default layout", the book says, "try append the 
following code to layout.html header."

<style>
body { background: url('images/background.png') repeat-x #3A3A3A; }
a { color: #349C01; }
.header h1 { color: #349C01; }
.header h2 { color: white; font-style: italic; font-size: 14px;}
.statusbar { background: #333333; border-bottom: 5px #349C01 solid; }
.statusbar a { color: white; }
.footer { border-top: 5px #349C01 solid; }
</style>

Following the book, I tried:

<style>
// joe1
// match [.header h1; .statusbar; .footer; ] =  #XXXXXX == darkred = #880000
body { background: url('images/background.png') repeat-x #3A3A3A; }
a { color: #349C01; }
.header h1 { color: #880000; }
.header h2 { color: white; font-style: italic; font-size: 14px;}
.statusbar { background: #880000; border-bottom: 5px #349C01 solid; }
.statusbar a { color: white; }
.footer { border-top: 5px #880000 solid; }
// /joe1
</style>

The [.header h1] color didn't change. The footer color did. 

Does the book need to be updated? Or is it just my lack of understanding? 

I'd like to make the navbar background color darkred as well.

Any suggestions would be appreciated.

Thanks in advance.

Love and peace,
Joe  

P.S. A Google group issue: The suggested tags for this Post are:

> sessions* ·  *cache* ·  *internationalization* ·  *routing* ·  *
> error_handling* ·  *scheduler* ·  *modules* ·  *views* ·  *html_helpers* ·  
> *DAL* ·  *uploads* ·  *forms* ·  *validation* ·  *grid* ·  *crud* ·  *mail* · 
>  
> *auth* ·  *services* ·  *REST* ·  *javascript* ·  *ajax* ·  *components* ·  
> *plugins* ·  *deployment* ·  *GAE* ·  *development* ·  *debugging* ·  *
> testing* ·  *models* ·  *bug* ·  *GIS* ·  *trunk* ·  *e-learning* ·  *
> contrib* ·  *css* ·  *payments
>

However, nothing after "*deployment*" shows up in my browser, so 
originally, until i copied and pasted the above, i didn't see  "*css*".

Thanks again.

Love and peace,
Joe

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to