Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
For any newbies wondering, here is how to replicate a single row of the gallery from this page: https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_examples_album Code: (let* (
This is unavoidable for layouts that require a lot of nested divs to get pixel perfect layouts particularly for layouts requiring rows and columns. I hope that helps. Thanks Rabbi for always following up even on really silly questions from noobs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working through trying to replicate this template: https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_examples_album
I am able to replicate various layout features using either panels or a single page application and in general manipulate individual elements. However, one of the key layout features of html is nested DIV objects. Obviously we can easily parent divs in the BUILDER. However, I cannot figure out how to nest dives using code in a function.
This functions works fine:
(defun make-new-div (panel target) (create-div panel :content "hello" :class "w3-third w3-row-padding w3-margin-top") )
I just cannot figure out how to nest divs using code to achieve certain layout goals. So, for example, I would like to be able to create the following hierarchical relationship:
div
div
div
/div
/div
/div
Does anyone know how this can be done using code?
Beta Was this translation helpful? Give feedback.
All reactions