How to create a mainbody background area which is transparen

GK User
Fri May 23, 2014 12:10 pm
I would like to make a mainbody area white that has a see through effect (transparent) towards the background image. How do I do this the best way?
User avatar
Gold Boarder

GK User
Fri May 23, 2014 2:02 pm
Hi,
it's possible - can you show me your page with image background - it will speed up my help.
User avatar
Platinum Boarder

GK User
Sat May 24, 2014 7:19 am
Great! As the site is not live yet ... I have sent you a PM.
User avatar
Gold Boarder

GK User
Sat May 24, 2014 9:32 am
If we talk about background under article content you can use this:
Code: Select all
.itemBody {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    color: #222222;
}

Result should be similar to this
effect2.png


of course you can change transparency parameter (0.8 --> 0.6 etc.) or font color etc.
User avatar
Platinum Boarder

GK User
Sat May 24, 2014 9:38 am
Great. Yes I would need transparancy.
Would it be possbile to have round corners?
User avatar
Gold Boarder

GK User
Sat May 24, 2014 10:04 am
Code: Select all
.itemBody {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 6px;
   -webkit-border-radius: 6px;
   -moz-border-radius: 6px;
    color: #222222;
    float: left;
    padding: 10px;
    width: 98.2%;
}
User avatar
Platinum Boarder

GK User
Sat May 24, 2014 12:25 pm
Thank you again. So, in order to be safe if upgrades are to be done ... where do I put this code?
User avatar
Gold Boarder

GK User
Sat May 24, 2014 12:41 pm
If we talk about modules ... can a solution for this be possible also?
User avatar
Gold Boarder

GK User
Sat May 24, 2014 2:12 pm
So, in order to be safe if upgrades are to be done ... where do I put this code?

Yeah, just use my tip from footer link.
User avatar
Platinum Boarder

GK User
Sat May 24, 2014 2:19 pm
chriddo wrote:If we talk about modules ... can a solution for this be possible also?

This should help:
Code: Select all
#gkMainbody .box {
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding-left: 4px !important;
}
User avatar
Platinum Boarder

GK User
Sat May 24, 2014 2:20 pm
To make font darker in NSP module please use:
Code: Select all
.nspArt p.nspText { color: #222222; }
User avatar
Platinum Boarder

GK User
Sat May 24, 2014 3:18 pm
Thank you for your help so far! :)

I have implemented the code and we are almost done ... I need to be able to control the margin top, left, right and bottom before the content in an article begins (or module).

As it is now, the text is too narrow.

Also, when having a K2 item the text shows OK ... but the Item Title has no background transparancy. Can this be done in some smart way as well?
User avatar
Gold Boarder

GK User
Sat May 24, 2014 5:57 pm
I helped you too much - we can not build for you your website.
So please use Firebug as I show here http://www.gavick.com/documentation/joo ... -size-etc/

Be smart.
User avatar
Platinum Boarder

GK User
Sat May 24, 2014 8:40 pm
I fully understand. Thank you very much for your input so far :)
User avatar
Gold Boarder


cron