sarahfoxnz Posted July 19, 2019 Share Posted July 19, 2019 https://www.w3schools.com/w3css/w3css_panels.asp Hello. I'm trying to make a panel - this works, however it takes up 100% of the available width. Is there a way to make the panel A ) auto-adjust to the content of the text, and/or B ) a specific width - eg 50% (of the available width of div - NOT 50% of the screen-size...) Link to comment Share on other sites More sharing options...
sarahfoxnz Posted July 19, 2019 Author Share Posted July 19, 2019 Ive worked it out div class="container w3-center-align" style="width: 50%; margin:auto;" Link to comment Share on other sites More sharing options...
dsonesuk Posted July 19, 2019 Share Posted July 19, 2019 You mean 'w3-half', also 'container' is bootstrap class, your not using both are you? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now