|
Forum Index : Microcontroller and PC projects : WEBMITE HTML
| Author | Message | ||||
| TrevorW Newbie Joined: 20/08/2019 Location: New ZealandPosts: 6 |
response.zip When I try to send the attached html file to my browser client, using the WEB TRANSMIT PAGE command, I get errors due to the style css content. I know the syntax is basically sound as I can open the file directly with my (Firefox) browser and the style description is correctly applied. In particular the "padding: 3px" code line throws up an error "Padding: Different type already declared". If I remove the padding reference I yhen get an error from the button styling - "incorrect operator". Is the MMBASIC getting confused with the curly brackets used in the css content and those reserved for variables that are replaced by their r values? Any assistance would be appreciated Edited 2023-12-10 09:24 by TrevorW |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
Yes, you need to use two opening curly brackets which will be converted to a single bracket for the browser. You don't need to worry about the closing bracket. For example: .Device1{{ padding:3px; color:black; background-color:{{BG1$}; border:black 2px solid; } Geoff Geoff Graham - http://geoffg.net |
||||
| TrevorW Newbie Joined: 20/08/2019 Location: New ZealandPosts: 6 |
Thanks for the advice Geoff Trevor W |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |