# Where are the Web Styles?

**URL:** <https://forum.xojo.com/t/where-are-the-web-styles/56332>\
**Category:** Web\
**Created:** [August 27, 2020, 5:45pm UTC](https://forum.xojo.com/t/where-are-the-web-styles/56332 "2020-08-27T17:45:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvaro\_Fontan](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ccd318/32.png) [@Alvaro\_Fontan](https://forum.xojo.com/u/Alvaro_Fontan)\
**Post date:** [August 27, 2020, 5:45pm UTC](https://forum.xojo.com/t/where-are-the-web-styles/56332/1 "2020-08-27T17:45:20Z")

</div>

It looks like x2020r1 removes completely Web Styles. This is pretty bad, all previous projects are completely broken. Don’t understand the logic behind this. Now objects seem to need property styles applied individually instead of by group like in previous versions. Many objects are not capable of rendering properly like before.

I’m having a hard time trying to wrap my head around this new “feature”… anybody else seeing this?

---

<div class="post-metadata">

**Author:** ![Alvaro\_Fontan](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ccd318/32.png) [@Alvaro\_Fontan](https://forum.xojo.com/u/Alvaro_Fontan)\
**Post date:** [August 27, 2020, 5:46pm UTC](https://forum.xojo.com/t/where-are-the-web-styles/56332/2 "2020-08-27T17:46:54Z")

</div>

I was just told to read about this here;  
[https://blog.xojo.com/2020/08/27/converting-web-projects-to-web-framework-2-0/](https://blog.xojo.com/2020/08/27/converting-web-projects-to-web-framework-2-0/)

---

<div class="post-metadata">

**Author:** ![Norman\_Palardy](https://forum.xojo.com/user_avatar/forum.xojo.com/norman_palardy/32/169_2.png) [@Norman\_Palardy](https://forum.xojo.com/u/Norman_Palardy)\
**Post date:** [August 27, 2020, 6:13pm UTC](https://forum.xojo.com/t/where-are-the-web-styles/56332/3 "2020-08-27T18:13:51Z")

</div>

Can someone with suitable permissions move this into the Web channel ?  
@Greg_O_Lone, @Anthony_Cyphers or someone ?

---

<div class="post-metadata">

**Author:** ![Brock\_Nash](https://forum.xojo.com/user_avatar/forum.xojo.com/brock_nash/32/1126_2.png) [@Brock\_Nash](https://forum.xojo.com/u/Brock_Nash)\
**Post date:** [August 28, 2020, 1:45pm UTC](https://forum.xojo.com/t/where-are-the-web-styles/56332/4 "2020-08-28T13:45:31Z")

</div>

Not ideal, but you can build a dictionary as a WebStyle and then have a WebUIControl extension method in a module that loops through to add them

```
Public Sub AddStylesFromDictionary(extends control as WebUIControl, d as Dictionary)
  for i as integer = 0 to d.KeyCount - 1
    control.Style.Value(d.key(i)) = d.Value(d.Key(i))
  next
End Sub

```

Application:

```
dim myStyle as new Dictionary
myStyle.value("border-top") = "1px solid rgba(162,162,172,1.00)"
myStyle.value("border-left") = "1px solid rgba(0,19,75,1.00)"
myStyle.value("border-bottom") = "1px solid rgba(0,19,75,1.00)"
myStyle.value("border-right") = "1px solid rgba(0,19,75,1.00)"
myStyle.value("background") = "linear-gradient(to bottom, rgba(128,159,255,1.00) 0%, rgba(0,19,75,1.00) 100%)"

me.AddStylesFromDictionary(myStyle)
```

---

<div class="post-metadata">

**Author:** ![Thorsten\_Stueker](https://forum.xojo.com/user_avatar/forum.xojo.com/thorsten_stueker/32/1165_2.png) [@Thorsten\_Stueker](https://forum.xojo.com/u/Thorsten_Stueker)\
**Post date:** [August 28, 2020, 2:09pm UTC](https://forum.xojo.com/t/where-are-the-web-styles/56332/5 "2020-08-28T14:09:28Z")

</div>

> [@Brock\_Nash](#):
>
> but you can build a dictionary as a WebStyle

This Workaround if not near to a workaround. I have more than 200 Styles in one medical App. Wich are in more than 1200 positions in the code. Costs me at least 20000 $ to rewrite. But there are other limitations and leaks of functionality. So rewrite is not possible.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 4:38pm UTC](https://forum.xojo.com/t/where-are-the-web-styles/56332/6 "2021-04-29T16:38:11Z")

</div>


