-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two-column formatting? #236
Comments
I'm new to remark, correct me if I'm wrong but you could add some CSS: ul { Or something to that effect. |
Hmm, well, I don't want it to be a background image. I tried something like:
...and that works quite well. However, I have to specify a bunch of ratios for my columns, unless I'm missing a mechanism to pass arguments to the styles. i.e. something like:
New question:While I'm asking dumb questions: I can't see in the +remark.less+ file how to move the title closer to the upper left on the slide. There is a lot of white space up there. Thanks! |
Since you need two columns with a variable split, I would suggest something like the following:
And the corresponding CSS: .column:first-of-type {float:left}
.column:last-of-type {float:right}
.split-40 .column:first-of-type {width: 40%}
.split-40 .column:last-of-type {width: 60%} Then you can always have two |
The title by default has some extra spacing around it. To move it closed to the upper left corner, you need to remove some of the padding on the slide itself, as well as some of the top margin of the titles |
Closing as solved, please reopen as needed. |
Thanks a lot, very helpful! I used remark for a presentation the other day and it worked very well. I did have to define a number of .left-content30/.right-content70 classes, which was a bit of a pain, but after that it worked well. |
@gnab Hi, I tried your way, the last column cannot get selector |
@gnab's suggestion above is really clean but didn't work for me (maybe CSS standard has changed? I'm not a CSS guy) But this worked: .cols[
.fifty[
left
- a
- b
- c
]
.fifty[
right
- a
- b
- c
]
] CSS: .cols {
display: flex;
}
.fifty {
flex: 50%;
} |
FYI the |
Hi, I often require an image beside my bullet points for scientific talks. i.e. the image is what I am discussing, but it is nice to have a couple of bullets to guide the viewer. It would be ideal for the two columns to be of adjustable width. I looked quickly at remark.less, but there does not seem to be a way do this with the default styling. Is it easy to do, or do I rely on raw html? Thanks! remark.js looks like it will be really useful.
The text was updated successfully, but these errors were encountered: