-
AuthorPosts
-
January 21, 2016 at 10:03 am #569255
Hi, I’d like to add a gradient colour to the header (like this example: http://www.marketingdepartment.net.au/images/HeaderExample.png ) – is there a way to do it other than images in a color section or full screen slider?
I would like it to be used on the “Transparent” Header.
Thank you in advance for your help.
January 21, 2016 at 10:05 am #569257Ive searched all forums and found nothing by the way, so sorry if this has been answered before.
January 21, 2016 at 3:39 pm #569433Hey!
The example you have in the screenshot can only be achieved using an image however you like to add simple version of gradients that can be done using CSS please send us the website link so we can send you custom css for header to add a gradient background.
You can create gradients using online css tools once you are happy with it you can share the code with us or replace it with our code.
Best regards,
VinayJanuary 21, 2016 at 4:08 pm #569444Thanks Vinay, would love to give that a try…
January 22, 2016 at 8:43 am #569814Hi,
Maybe this thread will help you out? https://kriesi.at/support/topic/make-background-gradient/
Regards,
RikardJanuary 22, 2016 at 10:00 am #569859I had seen that thread and it didn’t work when I tried it. I think the transparency is the big issue – I need it to go from a transparent color and fade out completely.
January 22, 2016 at 10:10 am #569865Basically, judging on that thread and another i have used, I want to add something like this to the transparent header:
background: -webkit-gradient(linear, left top, left bottom, from(rgba(10, 49, 103, 0.60)), to(rgba(10, 49, 103, 0)));
background: -moz-linear-gradient(top, rgba(10, 49, 103, 0.60), rgba(10, 49, 103, 0));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’rgba(10, 49, 103, 0.60)’, endColorstr=’rgba(10, 49, 103, 0)’);Would that work? How could I implement it?
January 22, 2016 at 11:10 am #569900I think I have worked it out actually. I combined several elements (some from another thread here, and code from another location independent of Kriesi and came up with the below – could you review and let me know if you see anything that may cause an issue?
#header_main {
background: rgba(10,49,103,0.90);
background: -webkit-linear-gradient(top, rgba(10,49,103,0.90), bottom(10,49,103,0)); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(top, rgba(10,49,103,0.90), bottom(10,49,103,0)); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(top, rgba(10,49,103,0.90), rgba(10,49,103,0)); /* For Firefox 3.6 to 15 */
background: linear-gradient(to bottom, rgba(10,49,103,0.90), rgba(10,49,103,0)); /* Standard syntax (must be last) */
}January 25, 2016 at 4:53 am #571058Hi,
I can’t see any problems with the code you posted, is it working as you would like it to?
Best regards,
RikardJanuary 25, 2016 at 6:27 am #571104Looks good here. Thanks for your help.
-
AuthorPosts
- The topic ‘Gradient Background’ is closed to new replies.