Change background of menu list

Ask questions about iWebKit's code

Change background of menu list

Postby gdscei on Sat 06 Feb 2010, 08:41

How can i change the background of a menu (like <li class="menu">)

How can i change the background color for that? i tried to edit the CSS by adding a background color thing, but i got the result, but it showed really square.

Can anyone help me with this? Thanks!
Proud to be a Die-Hart fan :D
Current project I am busy with: The BETTER TabBar
My latest creation: iDC
Don't forget to check out my Twitter, website and the iWebkitWiki.
User avatar
gdscei
Die-Hart fan
Die-Hart fan
 
Posts: 614
Joined: Sun 08 Nov 2009, 17:10
Location: The Netherlands

Re: Change background of menu list

Postby Christopher on Sun 07 Feb 2010, 01:02

just add

li.menu{background:red}

anywhere in the css file
Image
User avatar
Christopher
Site Admin
Site Admin
 
Posts: 1023
Joined: Wed 10 Dec 2008, 23:01
Location: France

Re: Change background of menu list

Postby gdscei on Mon 08 Feb 2010, 19:25

Christopher wrote:just add

li.menu{background:red}

anywhere in the css file


I tried this with textbox though, and it showed up kinda squared... look:

http://gdscei.com/cy/orbi.html --> it is that 'scroll down for...'

(i actually edited the CSS totally by starting from the original total textbox css, just edited the class name and background color as your described)(uncompressed/developer version)(i'm on iWebKit5)
Proud to be a Die-Hart fan :D
Current project I am busy with: The BETTER TabBar
My latest creation: iDC
Don't forget to check out my Twitter, website and the iWebkitWiki.
User avatar
gdscei
Die-Hart fan
Die-Hart fan
 
Posts: 614
Joined: Sun 08 Nov 2009, 17:10
Location: The Netherlands

Re: Change background of menu list

Postby Christopher on Mon 08 Feb 2010, 23:10

ok then just change the color of that particular page item. remove the css you added and add style="background:red" to your pageitem <ul>

in the html file. not css.
Image
User avatar
Christopher
Site Admin
Site Admin
 
Posts: 1023
Joined: Wed 10 Dec 2008, 23:01
Location: France

Re: Change background of menu list

Postby gdscei on Tue 09 Feb 2010, 19:02

Christopher wrote:ok then just change the color of that particular page item. remove the css you added and add style="background:red" to your pageitem <ul>

in the html file. not css.


That makes it looks great. Thanks! :D
Proud to be a Die-Hart fan :D
Current project I am busy with: The BETTER TabBar
My latest creation: iDC
Don't forget to check out my Twitter, website and the iWebkitWiki.
User avatar
gdscei
Die-Hart fan
Die-Hart fan
 
Posts: 614
Joined: Sun 08 Nov 2009, 17:10
Location: The Netherlands


Return to Get iWebKit coding help

Who is online

Users browsing this forum: No registered users and 1 guest