So you decided to make your own website: where do you start?

elia925-6

Well-Known Traveler
Joined
Aug 28, 2021
Messages
1,078
Reaction score
1,735
Awards
187
Then there were websites of website designers whose site was their portfolio, and they usually had wacky logos, vector based designs, maybe they were made entirely in Flash with no HTML.
Wish adobe made a decent replacement of macromedia flash.
 
Virtual Cafe Awards

№56

Self-Hating Bureaucrat
Gold
Joined
Mar 27, 2022
Messages
872
Reaction score
5,386
Awards
256
Website
no56.neocities.org
These content docs would be VERY bare bones HTML documents, probably something no more complex than what can be put out with a markdown editor automatically (this let's you have streamlined content production, since actually writing HTML for an article is tedious and slows your content production workflow pretty badly).
This is a great idea, I hadn't considered how much of the tediousness of my previous attempt at web design was a result of trying to do all the HTML formatting by hand. What markdown editor do you use? I've been using Ghostwriter but I don't like the way it exports to HTML.
 
Virtual Cafe Awards

gsyme

Traveler
Joined
Feb 24, 2023
Messages
34
Reaction score
112
Awards
28
This is a great idea, I hadn't considered how much of the tediousness of my previous attempt at web design was a result of trying to do all the HTML formatting by hand. What markdown editor do you use? I've been using Ghostwriter but I don't like the way it exports to HTML.

Depends on what im doing.

Straight up articles: ReText. It puts out an html/head/body section, but you can cut that off.

Ctfs: i take all of my notes in joplin while im working on the box, so i just open up a new subsection and bang out the article in joplin alongside my notes.

my current project, im not exporting anymore though. Its php/sql driven. The output comes through parsedown which does tye conversion automatically and the data is stored in a db as raw markdown.
 

№56

Self-Hating Bureaucrat
Gold
Joined
Mar 27, 2022
Messages
872
Reaction score
5,386
Awards
256
Website
no56.neocities.org
build out a presentational framework, probably in a 2 column format. I'd have something like a titlebar div across the top, a "main" horizontal navbar div just under that, and then 2 columns as floated divs. Maybe a footer div under that, but whatever.
How do you make the two columns always extend to the bottom of the viewport, regardless of how much content they contain and without creating scrollbars?
I have been trying to make this layout work all day and haven't accomplished anything other than giving myself a headache.
 
Virtual Cafe Awards

gsyme

Traveler
Joined
Feb 24, 2023
Messages
34
Reaction score
112
Awards
28
How do you make the two columns always extend to the bottom of the viewport, regardless of how much content they contain and without creating scrollbars?
I have been trying to make this layout work all day and haven't accomplished anything other than giving myself a headache.

If you're talking about with just a plain multi column:

you technically can't, because your container div for the floats won't actually have a height unless you set a fixed height. You can see how it's not happening in a shitty example I built out a few days ago:

shitty_example.png


This is a three column, but same principle:

CSS:
#body {

background:#ff0000;

}


#container {

border-style:solid;
border-color:#000000
}


#container:after{ /*this sets up the float "clear" that's needed to keep the container div from "collapsing"*/

content: "";

display: table;

clear: both;

}

(the actual CSS and HTML are pretty different from this, but hopefully it gets across what's going on).

if I were to change the bg color of the container to match the side columns, I could make it *look like* they go on for 100%, but the container doesn't actually have a height to peg a percent-based height to for the floated columns because of some shenanigans that happen when you do a classic float setup like this.

That would be effectively how you make it *look like* you have sidebars that go on for 100%.

https://riseup.net/ kinda has an example of this. Their page is much more complex than my example, but in a nutshell, the big content div in the middle is a container holding a 2 column setup (the main content and the "system updates" to the right). As you can see, the main content is shorter than the system updates, but they make it look like it goes on to the end by making the container div have the same bg color as the 2 columns it contains.


EDIT: Floats are an old way to do this, and how I always knew how to do it. CSS has improved since I really did this stuff seriously lol.

If you want multiple columns of the same width, you do a flexbox with modern CSS. To do that, you make a container div, and then put other divs inside of it.

You'd style the container div with display: flex;

CSS:
<style>

.container{

display:flex;
height:100%;

}

.container > div {

[whatever]

}

#individual_divs{

[set particulars like width and such]

}
</style>

<div class="container">

<div>Content and such</div>
<div>More content</div>
<div>even more</div>

</div>

This would make 3 divs in a row that are next to each other.

Redoing my shitty example above like this, we get something better:

flexbox.png



Now then, for taking the scroll bars off of the iframes (I know I mentioned iframes in the post you're quoting, so I'm assuming that's what you're talking about having scrollbars, since divs need overflow: scroll to be set manually), note that I haven't worked with iframes in over a decade, but just looking around it looks like there's a couple ways you could try this:

- set overflow: hidden for the <html> element of the document that's to be rendered in the iframe (note: *not* the page the iframe is on!)
- use the <iframe> tag's scrolling="no" attribute (deprecated and may not work)
- do both and hope it works lol
 
Last edited: