Issue with styling because of "wrapper"
See original GitHub issueHello,
I’m having a few issues with the styling of this plugin because of “wrapper”.
I’m incorporating this plugin into my website and this is what the issue looks like:
There is a big space between the name of the field and the component “textbox”
{
"fields":[
{
"featured":false,
"label":"Firstname",
"disabled":false,
"readonly":false,
"model":"firstname",
"type":"input",
"inputType":"text"
},
{
"featured":false,
"label":"Second Name",
"disabled":false,
"readonly":false,
"model":"second-name",
"type":"input",
"inputType":"text"
},
{
"rows":4,
"hint":"Max 500 characters",
"max":500,
"label":"Description",
"placeholder":"",
"model":"description",
"type":"textArea"
}
]
}
Here is a picture of the error css
I am using the “Uplon” theme from themeforest.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Styling Layout Wrappers In CSS - Ahmad Shadeed
When the viewport size is less than the maximum width of the wrapper, this will cause the wrapper edges to stick to the...
Read more >The Best Way to Implement a "Wrapper" in CSS
Sometimes the first bit of HTML we write in a new document is an element that wraps everything else on the page. The...
Read more >Is a wrapper <div> a violation of content-style separation?
It certainly doesn't violate the separation of style and content because it provides CSS with a block to do something with.
Read more >Wrapping and breaking text - CSS: Cascading Style Sheets
This property will break the word at the point it overflows. It will cause a break-even if placing the word onto a new...
Read more >Enable styling of next/image outer wrapper #22861 - GitHub
I found this thread because I have a container that has margins and I want the image inside to fit flush with its...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I agree with this - had to restyle my wrapper class myself because of it. At least prefix all classes with “vfg-” - that would allow for easier styling and would definitely solve these issues.
I think we can probably provide some more advanced form level options, which would allow devs to override or amend their own classes at every level of the hierarchy. We could also prefix all the internal classes with something like “vfg-“ so there are no conflicts with popular frameworks such as bootstrap.
For example a “wrapperClass” property that defaults to “vfg-wrapper”, but can be changed to anything.