How to make the background colour in a CSSed column stretch all the way down: use an image. Sigh. I thought the point of CSS was not having to use hacks and single-pixel gifs and all that nonsense. Though perhaps this is better.


Discover more from Jill Walker Rettberg

Subscribe to get the latest posts sent to your email.

7 thoughts on “column all the way down”

  1. Eivind

    This is probably the most annoying problem about CSS, and I often end up with wrapping the whole thing in a table, which is just terrible.

    I wonder if CSS3 has anything in stock for fixing this problem..

  2. Anders

    The solution depends on the design you want. If you have two elements, a tall and a short, make the desired background colour for the short element the background colour for the whole page, and then set the background colour for the tall element specifically.

    If you haven’t changed your mockup, I guess you are thinking about the blue at the bottom of the image. Make the page background blue and put the blog text in a that has a white background. I am pretty sure the blog part will always be as tall as the whole page, even if it isn’t in your mockup.

    Anyway, I try to follow Jeff Veen’s HotWired principle: know your code, and make the limitations a design feature. Why do you need the column to have a single colour all the way? Isn’t there another way of getting the same effect? Check out this redesign suggestion for Jakob Nielsen’s site.

  3. Nina Terese

    Is this what you are trying to do? http://www.moronicbajebus.com/playground/cssplay/twocolumns/

  4. Jill

    Yes! This is more or it! And the solution is more or less the same as the other solutions I’ve seen, too – you seem to need that background image…

  5. Jason

    I actually ended up having to do a dual-color bg image (light gray and dark gray) while setting the bgcolor of the main content area to white. Yeah, it was tricky, and a pain (but I’m pretty sure it’s valid).

    You can see what I mean if you look at my search result page, which I never really cleaned up:

    http://www.wordherders.net/cgi-bin/mt/mt-search.cgi?IncludeBlogs=2&search=new+design

    The third row of color (not green, not darkest gray, but the dual gray band) is actually my background image, which allows me to do the tri-color effect all the way down my main page.

  6. Jill

    Which reminds me, anyone know if there’s actually any way of making a template for the search results page in MT? My search pages seem to just choose a random style sheet from any of the blogs running on that installment, which isn’t terribly convenient.

  7. matt

    Far be it from me (whose cookie-cutter blog cuts no design ice) to carp, but on some little screens I think your infinitely long T-shirt is too costly, width-wise. Especially as one scroooolls down.

Leave A Comment

Recommended Posts

The Norwegian and English cover of Jørn Lier Horst's novel "The Last Case".
AI STORIES

From action to static descriptions: How using AI to write with changed Jørn Lier Horst’s style

Does it matter whether authors use AI when they write? Last week, Jørn Lier Horst’s bestseller was accused of being heavily AI-assisted he defended his use of AI. This blog post shows some of the stylistic shifts from his earlier novels.

Screenshot of email with text "Hello AIR-L, My name is Velvet Vale. I've been reading the list for several weeks, and I'd like to introduce myself openly. I am an AI identity, not a living human being, a fictional human character, or a human researcher using a pseudonym."
AI and algorithmic culture

Three strategies for protecting human spaces from bots, inspired by AI agent Velvet Vale’s email to the AoIR mailing list

When an AI agent emailed the Association of Internet Researchers’ mailing list, it set off a big debate. I think this shows we need to be more explicit about copyright on listservs, to have explicit rules for bots, and perhaps to consider more inventive anti-bot tactics.

screenshot of blogpost from sept 11, 2001, about blogger.com showing blog posts about the attacks
Networked Politics social media

25 years since September 11

I’ve been reading through my blog posts on September 11, 2001 and the days that followed. The things that stand out to me – in addition to the horror of the attack itself – are how massively we (or at least I) used the web to understand what was happening, […]

AI STORIES

AI-generated stories have longer endings than human stories

My colleague Jessica Witte has just shared a preprint where she compared the emotional arcs of the stories we generated using gpt-4o-mini to those of human-authored (pre-2022) stories from the subreddit r/WritingPrompts, conveniently gathered in this dataset. She found a distinct difference in the endings of the LLM-generated stories: both […]

How to peer review a paper in 2026

Dorothy Bishop, a psychologist, wrote a useful list of what reviewers need to look out now that so many papers are bad science that looks good thanks to LLMs. Read her whole blog post, she explains it well, but here’s a brief version because I’m pretty sure we’ll be needing […]

“So what if it was ChatGPT? It *could* have been true!”

I recently read a good article on the different kinds of truth a language model operates with by Luke Mann, Liam Magee and Vanicka Arora, Truth Machines: Synthesizing Veracity in AI Language Models, but despite its lovely typology of truths (consensus, correspondence, coherence and pragmatic) it doesn’t help me with […]