Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to set background-images on my parallax site...and i've got to issues here...
Because of the tags {} [] I guess it makes problems - how to solve?
Some kind og if or ucase for the first and count for the rest. How?
THX!
[data-animation="parallax"] .cd-section:first-of-type > div, [data-animation="fixed"] .cd-section:first-of-type > div, [data-animation="opacity"] .cd-section:first-of-type > div { background-image: url("@imagePath"); } [data-animation="parallax"] .cd-section:nth-of-type(2) > div, [data-animation="fixed"] .cd-section:nth-of-type(2) > div, [data-animation="opacity"] .cd-section:nth-of-type(2) > div { background-image: url("@imagePath"); } [data-animation="parallax"] .cd-section:nth-of-type(3) > div, [data-animation="fixed"] .cd-section:nth-of-type(3) > div, [data-animation="opacity"] .cd-section:nth-of-type(3) > div { background-image: url("@imagePath"); }
Hi Jon,
What exactly wrong with your code?
What error?
Thanks
Did you solve the problem ?
Hi Jon
You can do like this
@Html.Raw("[data-animation=\"parallax\"] .cd-section:nth-of-type(3) > div, [data-animation="\fixed\"] .cd-section:nth-of-type(3) > div, [data-animation=\"opacity\"] .cd-section:nth-of-type(3) > div {") background-image: url("@imagePath"); @Html.Raw("}")
That way, the brackets will not be interpreted as c#
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Dynamic styling syntax NEWBIE
I am trying to set background-images on my parallax site...and i've got to issues here...
Because of the tags {} [] I guess it makes problems - how to solve?
Some kind og if or ucase for the first and count for the rest. How?
THX!
Hi Jon,
What exactly wrong with your code?
What error?
Thanks
Hi Jon,
Did you solve the problem ?
Thanks
Hi Jon
You can do like this
That way, the brackets will not be interpreted as c#
is working on a reply...