ant

‘We want our citizens to breathe fresh air’

Dr. John Keung, CEO of Singapore’s Building and Construction Authority, plans to convert 80 per cent of all buildings in his country to green buildings by 2030.




ant

Balrampur Chini hopes success of polylactic acid plant will be sweet

In conversation with Avantika Saraogi, ED, and Stefan Barot, President, Chemicals Division, Balrampur Chini Mills




ant

ITC wants a bigger FMCG slice

The Sanjiv Puri-led group looks set to feed on the success of its brand extension strategy




ant

The secret sauce behind ITC’s enduring restaurant brands

The promise of an unchanged, consistent menu and supreme culinary artistry has drawn food lovers to ITC’s tables for decades




ant

New venture Zerofifty from ad veterans wants to simplify the agency model

ZeroFifty Mediaworks, set up by three ad veterans, wants to bring in Bandra vibes into the agency model




ant

Building digital trust with quantum tech

QNu Labs devises qubit-powered solutions for the ‘trillion-dollar cyber-attack problem’ 




ant

ADB increases climate finance after US, Japan give world's first sovereign guarantees




ant

Issue of infiltration in Santhal Pargana was raised, Hemant did not listen: Champai Soren

The longtime JMM-loyalist, who has now switched to the BJP, adds that decisions he had taken as CM — on tribal language education, PESA implementation, and jump-starting state recruitments — have been put on hold now




ant

Delhi govt okays proposal, 10000 Civil Defence Volunteers to return for anti-pollution work: Atishi

Within two-three days of the registration, the CDVs will be deployed on duties like management of pollution hotspots, preventing dust pollution and garbage burning, she said in a press briefing




ant

1984 anti-Sikh riots case: Delhi HC says murder trial to continue against Congress leader Jagdish Tytler

Justice Manoj Kumar Ohri was hearing a plea filed by Mr. Tytler seeking a stay on the trial proceedings taking place against him in a Delhi court. The court would continue with the hearing on November 29




ant

ARRL Recognizes University of Scranton During Amateur Radio Station Dedication

The University of Scranton in Pennsylvania has a new amateur radio station, W3USR. A dedication was held at the university’s Loyola Science Center on Friday, October 25, 2024, led by Dr. Nathaniel Frissell, W2NAF, an associate professor of physics and electrical engineering, and club advisor for the University of Scranton Amateur Radio Club.

The new W3USR University of Scranton Amateur Radio Sta...




ant

Why we want that extra money

A clutch of case studies forces us to rethink the way we look at commercialising leisure work online




ant

Why it’s important to do nothing

Jenny Odell’s take on avoiding the seduction of the online world is a must-read for Covid times




ant

Into the life of a billionaire-philanthropist

The book covers Wipro founder Azim Premji’s journey without pulling any punches




ant

A cricket romantic’s broad sweep

Guha’s love for the game shines through brightly, so does his anguish over the BCCI and CoA




ant

Triumphs and travails of a consultant

The book is a detailed job description for anybody wanting to make consulting their career




ant

GI tag sought for the Senkanthal seed whose flower holds a special place in Tamil literature

Minister for Agriculture and Farmer’s Welfare M.R.K.Panneerselvam, while presenting the State’s Agriculture Budget, had said that Geographical Indication tag would be obtained for 10 agricultural products at a cost of ₹30 lakh




ant

Eyebrows raised as Central team visits Anantapur to assess rabi drought during rainy kharif

The team choosing mandals like Vidapanakallu and Vajrakarur which received excessive rain in June, draws flak from farmers and district officials alike; farmers worry as to how to present their drought woes to the officials who are visiting their fields which are now rain-fed and green




ant

First of its kind ‘Product Santhe’ at UAS attracts 15,000 visitors 

Products like coconut oil, handmade scented soaps and face creams, value added products of millets, nutritional laddu, bakery products, ready to cook powders and mixtures and pickles were also popular among the visitors. 




ant

Farmers rush to plant summer crops as monsoon revives

The monsoon brings nearly 70% of the rain India needs to water farms and refill reservoirs and aquifers; nearly half of the farmland depends on the annual rains




ant

Cabinet clears new scheme to supply virus-free planting material

It will cover all farmers, regardless of their landholding size or socioeconomic status: Ministry




ant

ICAR team makes tool small enough to edit plant genomes

In a genome-editing landscape low on options for plants, the new tool has scientists enthused about its applications in agriculture




ant

Hamlet of vegetable farming turns into vibrant sea of yellow and orange

In Thattayil village near Pandalam, farmers are enthusiastically taking up floriculture. A collective of 35 farmers is cultivating marigolds on eight hectares for this Onam season




ant

Anantapur Collector urges farmers to adopt natural practices

V. Vinod Kumar visits several watershed structures in the district implemented by Accion Fraterna Ecology Centre with funding from NABARD




ant

Home cooks in Thiruvananthapuram are championing artificial additive-free jams, preserves, juice, ethnic eats and more

Four home cooks in Thiruvananthapuram are turning fruits into value-added products without using artificial flavours or preservatives





ant

Observability and mathematics [electronic resource] : Quantum Yang-Mills theory and modelling / Boris Khots.




ant

China slowdown ‘a significant risk’ for global economy

There has been a sharp contraction in China’s imports over the past year




ant

Won’t let them wreck our plant: Tata’s Dutch workers

Trade union leaders say returns would have been higher if Tata’s leaders hadn’t diverted investment to Britain




ant

Plastic is fantastic: Credit cards register highest growth in five years

Axis Bank leads charge, SBI narrows gap with ICICI, HDFC Bank on top; numbers inch up to 25m




ant

Investors can now file class action suits against errant cos




ant

Simplilearn to expand tie-ups with cos; plans guaranteed interviews




ant

Litigant withdraws PIL seeking revival of 2001 flyover construction scam case against T.N. CM Stalin

The Madras High Court also permits him to withdraw ₹1 lakh deposited in April this year to prove his bona fide intention




ant

Drop deformation in a planar elongational flow: impact of surfactant dynamics

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00642A, Paper
Julian Wailliez, Paul Regazzi, Anniina Salonen, Paul G. Chen, Marc Jaeger, Marc Leonetti, Emmanuelle Rio
We measure the deformation of a drop under an extensional flow. The drop is less deformed than for a pure liquid because of the depletion of surfactants at the tips, which we attribute to the adsorption/desorption dynamics of the surfactants.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ant

Microrheology of gemini surfactants at interfaces and in solutions in the dilute and semidilute regimes

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00860J, Paper
Mayssa Medfai, Antonio Stocco, Christophe Blanc, Maurizio Nobili, Martin In
The interface of semidilute Gemini surfactant solutions remains fluid and is less viscous than the bulk. Depletion of the viscosity near the interface plays a key role in microrheology.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ant

Towards a universal model for the foaming behavior of surfactants: a case study on per- and polyfluoroalkyl substances (PFAS)

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00931B, Paper
Muchu Zhou, Reza Foudazi
Foam fractionation offers a promising solution for the separation of surface-active contaminants from water.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ant

Confined bicontinuous microemulsions: nanoscale dynamics of the surfactant film

Soft Matter, 2024, 20,8692-8701
DOI: 10.1039/D4SM00925H, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Margarethe Dahl, Olaf Holderer, René Haverkamp, Ingo Hoffmann, Kathleen Wood, Jessica Hübner, Thomas Hellweg, Stefan Wellert
A confined bicontinuous C10E4–D2O–n-octane microemulsion is studied using neutron spin echo spectroscopy (NSE). The pore size of the confining matrices determines the dynamics of the confined bicontinuous microemulsion.
The content of this RSS Feed (c) The Royal Society of Chemistry




ant

Hydrophobic fouling-resistant electrospun nanofiber membranes from poly(vinylidene fluoride)/polyampholyte blends

Soft Matter, 2024, 20,8654-8662
DOI: 10.1039/D4SM00817K, Paper
Anuja S. Jayasekara, Luca Mazzaferro, Ryan O’Hara, Ayse Asatekin, Peggy Cebe
This study reports the fabrication of non-woven fibrous membranes from electrospinning blended solutions of PVDF with a random polyampholyte amphiphilic copolymer (r-PAC) in N,N-dimethylformamide and methanol.
The content of this RSS Feed (c) The Royal Society of Chemistry




ant

Light scattering study of algal floc growth and structure: alum vs. polymeric plant-derived flocculant

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00837E, Paper
Temitope Orimolade, Ngoc-Tram Le, Lyle Trimble, Bandaru Ramarao, Sitaraman Krishnan
Algal flocculation using alum shows dynamic fractal restructuring over time, while Moringa oleifera protein induces faster densification, enhancing floc strength.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ant

Interfacial viscoelasticity in oscillating drops of cyclodextrin-surfactant aqueous solution: experiments and theory

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM01007H, Paper
José Roberto Romero-Arias, Alberto S. Luviano, Miguel Costas, Aurora Hernandez-Machado, Rafael A Barrio
We present experiments involving oscillating droplets in aqueous cyclodextrin-surfactant solutions. In these experiments, α-cyclodextrin (αCD) and anionic surfactants exhibit remarkable viscoelasticity at the liquid/air interface, with dilatational modulus varying across...
The content of this RSS Feed (c) The Royal Society of Chemistry




ant

Flexible Captioned Slanted Images

Eric Meyer gift wraps the most awkwardly shaped of boxes using nothing but CSS, HTML and a little curl of ribbon. No matter how well you plan and how much paper you have at your disposal, sometimes you just need to slant the gift to the side.


We have a lot of new layout tools at our disposal these days—flexbox is finally stable and interoperable, and Grid very much the same, with both technologies having well over 90% support coverage. In that light, we might think there’s no place for old tricks like negative margins, but I recently discovered otherwise.

Over at An Event Apart, we’ve been updating some of our landing pages, and our designer thought it would be interesting to have slanted images of speakers at the tops of pages. The end result looks like this.

The interesting part is the images. I wanted to set up a structure like the following, so that it will be easy to change speakers from time to time while preserving accessible content structures:

<div id="page-top">
  <ul class="monoliths">
    <li>
      <a href="https://aneventapart.com/speakers/rachel-andrew"> 
        <img src="/img/rachel-andrew.jpg" alt=""> 
        <div> 
          <strong>Rachel Andrew</strong> CSS Grid 
        </div> 
      </a>
    </li>
    <li>
      <a href="https://aneventapart.com/speakers/derek-featherstone"> 
        <img src="/img/derek-featherstone.jpg" alt=""> 
        <div> 
          <strong>Derek Featherstone</strong> Accessibility 
        </div> 
      </a>
    </li>
    <li>
      …
    </li>
    <li>
      …
    </li>
  </ul>
</div>

The id value for the div is straightforward enough, and I called the ul element monoliths because it reminded me of the memorial monoliths at the entrance to EPCOT in Florida. I’m also taking advantage of the now-ubiquitous ability to wrap multiple elements, including block elements, in a hyperlink. That way I can shove the image and text structures in there, and make the entire image and text below it one link.

Structure is easy, though. Can we make that layout fully responsive? I wondered. Yes we can. Here’s the target layout, stripped of the navbar and promo copy.

So let’s start from the beginning. The div gets some color and text styling, and the monoliths list is set to flex. The images are in a single line, after all, and I want them to be flexible for responsive reasons, so flexbox is 100% the right tool for this particular job.

#page-top { 
  background: #000; 
  color: #FFF; 
  line-height: 1; 
} 
#page-top .monoliths { 
  display: flex; 
  padding-bottom: 1em; 
  overflow: hidden; 
}

I also figured, let’s give the images a simple basis for sizing, and set up the hyperlink while we’re at it.

#page-top .monoliths li { 
  width: 25%; 
} 
#page-top .monoliths a { 
  color: inherit; 
  text-decoration: inherit; 
  display: block; 
  padding: 1px; 
}

So now the list items are 25% wide—I can say that because I know there will be four of them—and the links pick up the foreground color from their parent element. They’re also set to generate a block box.

At this point, I could concentrate on the images. They need to be as wide as their parent element, but no wider, and also match height. While I was at it, I figured I’d create a little bit of space above and below the captioning text, and make the strong elements containing speakers’ names generate a block box.

#page-top .monoliths img { 
  display: block; 
  height: 33rem; 
  width: 100%; 
} 
#page-top .monoliths div { 
  padding: 0.5em 0; 
} 
#page-top .monoliths strong { 
  display: block; 
  font-weight: 900; 
}

It looks like the speakers were all cast into the Phantom Zone or something, so that needs to be fixed. I can’t physically crop the images to be the “correct” size, because there is no correct size: this needs to work across all screen widths. So rather than try to swap carefully-sized images in and out at various breakpoints, or complicate the structure with a wrapper element set to suppress overflow of resized images, I turned to object-fit.

#page-top .monoliths img { 
  display: block; 
  height: 33rem; 
  width: 100%; 
  object-fit: cover; 
  object-position: 50% 20%; 
}

If you’ve never used object-fit, it’s a bit like background-size. You can use it to resize image content within the image’s element box without creating distortions. Here, I set the fit sizing to cover, which means all of the img element’s element box will be covered by image content. In this case, it’s like zooming in on the image content. I also set a zooming origin with object-position, figuring that 50% across and 20% down would be in the vicinity of a speaker’s face, given the way pictures of people are usually taken.

This is fairly presentable as-is—a little basic, perhaps, but it would be fine to layer the navbar and promo copy back over it with Grid or whatever, and call it a day. But it’s too square and boxy. We must go further!

To make that happen, I’m going to take out the third and fourth images temporarily, so we can see more clearly how the next part works. That will leave us with Rachel and Derek.

The idea here is to clip the images to be slanted, and then pull them close to each other so they have just a little space between them. The first part is managed with clip-path, but we don’t want to pull the images together unless their shapes are being clipped. So we set up a feature query.

@supports (clip-path: polygon(0 0)) or (-webkit-clip-path: polygon(0 0)) { 
  #page-top .monoliths li { 
    width: 37.5%; 
  } 
}

I decided to test for both the un-prefixed and WebKit-prefixed versions of clip-path because Safari still requires the prefix, and I couldn’t think of a good reason to penalize Safari’s users for the slowness of its standards advancement. Then I made the images wider, taking them from 25% to 37.5%, which makes them half again as wide.

Thanks to object fitting, the images don’t distort when I change their parent’s width; they just get wider and scale up the contents to fit. And now, it is time for clipping!

@supports (clip-path: polygon(0 0)) or (-webkit-clip-path: polygon(0 0)) { 
  #page-top .monoliths li { 
    width: 37.5%; 
    -webkit-clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); 
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); 
  } 
}

Each coordinate pair in the polygon() is like the position pairs in background-position or object-position: the horizontal distance first, followed by the vertical distance. So the first point in the polygon is 25% 0, which is 25% of the way across the element box, and no distance down, so right at the top edge. 100% 0 is the top right corner. 75% 100% is on the bottom edge, three-quarters of the way across the element, and 0 100% is the bottom left corner. That creates a polygon that’s a strip three-quarters the full width of the element box, and runs from bottom left to top right.

Now we just have to pull them together, and this is where old tricks come back into play: all we need is a negative right margin to bring them closer together.

#page-top .monoliths li { 
  width: 37.5%; 
  margin-right: -7.5%; 
  -webkit-clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); 
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); 
}

The separation between them is a little wider than we were originally aiming for, but let’s see what happens when we add the other two images back in and let flexbox do its resizing magic.

Notice how the slants actually change shape as the screen gets narrower or wider. This is because they’re still three-quarters the width of the image element’s box, but the width of that box is changing as the screen width changes. That means at narrow widths, the slant is much steeper, whereas at wide widths, the slant is more shallow. But since the clipping path’s coordinates were all set with percentage distances, they all stay parallel to each other while being completely responsive to changes in screen size. An absolute measure like pixels would have failed.

But how did the images get closer together just by adding in two more? Because the list items’ basic sizing added up to more than 100%, and they’re all set to flex-shrink: 1. No, you didn’t miss a line in the CSS: 1 is the default value for flex-shrink. Flex items will shrink by default, which after all is what we should expect from a flexible element. If you want to know how much they shrunk, and why, here’s what Firefox’s flex inspector reports.

When there were only two list items, there was space enough for both to be at their base size, with no shrinkage. Once we went to four list items, there wasn’t enough space, so they all shrank down. At that point, having a negative right margin of -7.5% was just right to pull them together to act as a unit.

So, now they’re all nicely nestled together, and fully responsive! The captions need a little work, though. Notice how they’re clipped off a bit on the left edge, and can be very much clipped off on the right side at narrower screen widths? This happens because the li elements are being clipped, and that clipping applies to all their contents, images and text alike. And we can’t use overflow to alter this: clipped is clipped, not overflowed.

Fortunately, all we really need to do is push the text over a small amount. Inside the feature query, I added:

#page-top .monoliths div { 
  padding-left: 2%;
  padding-right: 26%; 
}

This shifts the text just a bit rightward, enough to clear the clip path. On the right side, I padded the div boxes so their contents wouldn’t fall outside the clipped area and appear to slide under the next caption. We could also use margins here, but I didn’t for reasons I’ll make clear at the end.

At the last minute, I decided to make the text at least appear to follow the slants of the images. For that, I just needed to shift the first line over a bit, which I did with a bit more padding.

#page-top .monoliths strong { 
  padding-left: 1%; 
}

That’s all to the good, but you may have noticed the captions still overlap at really narrow screen widths. There are a lot of options here, from stacking the images atop one another to reverting to normal flow, but I decided to just hide the captions if things got too narrow. It reduces clutter without sacrificing too much in the way of content, and by leaving them still technically visible, they seem to remain accessible.

@media (max-width: 35rem) { 
  #page-top .monoliths div { 
    opacity: 0.01 
  } 
}

And that, as they say, is that! Fully responsive slanted images with text, in an accessible markup structure. I dig it.

I did fiddle around with the separations a bit, and found that a nice thin separator occurred around margin-right: -8%, whereas beefier ones could be found above -7%. And if you crank the negative margin value to something beyond -8%, you’ll make the images overlap entirely, no visible separation—which can be a useful effect in its own right.

I promised to say why I used padding for the caption text div rather than margins. Here’s why.

#page-top .monoliths div { 
  padding-left: 3%; 
  padding-right: 26%; 
  border-top: 2px solid transparent; 
  background: linear-gradient(100deg,hsl(292deg,50%,50%) 50%, transparent 85%); 
  background-clip: padding-box; 
}

It required a wee bit more padding on the left to look decent, and an alteration to the background clipping box in order to keep the purple from filling the transparent border area, but the end result is pretty nifty, if I do say so myself. Alternatively, we could drop the background gradient on the captions and put one in the background, with a result like this.

I have no doubt this technique could be extended, made more powerful, and generally improved upon. I really wished for subgrid support in Chrome, so that I could put everything on a grid without having to tear the markup structure apart, and there are doubtless even more interesting clipping paths and layout patterns to try out.

I hope these few ideas spark some much better ideas in you, and that you’ll share them with us!


About the author

Eric A. Meyer (@meyerweb) has been a burger flipper, a college webmaster, an early blogger, one of the original CSS Samurai, a member of the CSS Working Group, a consultant and trainer, and a Standards Evangelist for Netscape. Among other things, Eric co-wrote Design For Real Life with Sara Wachter-Boettcher for A Book Apart and CSS: The Definitive Guide with Estelle Weyl for O’Reilly, created the first official W3C test suite, assisted in the creation of microformats, and co-founded An Event Apart with Jeffrey Zeldman. Eric lives with his family in Cleveland, Ohio, which is a much nicer city than you’ve probably heard. He enjoys a good meal whenever he can and considers almost every form of music to be worthwhile.

More articles by Eric




ant

Neeta Lulla on ‘Shaakuntalam’: Samantha Ruth Prabhu’s outfits are simple yet alluring

Designer Neeta Lulla on the fairytale-like silhouettes for Samantha Ruth Prabhu’s mythological romance drama ‘Shaakuntalam’




ant

From techno-inspired rave bags to pants that depict neurons, this Chennai-based gender neutral fashion label’s creations are conversation starters

Brimming with cut outs, panels, thread piping and embroidery, Biskit’s new collection explores the human mind



  • Life &amp; Style

ant

Knowing what you want

What you’re looking for out of your fitness regimen will dictate what you need to do to get there, writes RAJ GANPATH




ant

Editorial. Advantage consumer

Quick commerce is hardly anti-competitive




ant

Tamilnad Mercantile Bank posts ₹303 cr net profit in Q2

Net interest income grew by 12 per cent to ₹596 crore, up from ₹533 crore a year earlier



  • Money &amp; Banking

ant

RBI grants online payments aggregator license to Jio Financial arm JSPL

Jio Financial, helmed by veteran banker K.V. Kamath, already runs a shadow bank and an insurance brokerage and has joined forces with BlackRock Inc. to start an asset management business



  • Money &amp; Banking

ant

Compliant with gold loan norms, will further strengthen audit processes: CSB Bank MD

Bank expects its advances and deposits to rise at least 30-50 per cent faster than the banking system



  • Money &amp; Banking

ant

Punjab & Sind Bank launches e-bank guarantee facility 

This new facility replaces paper-based BG issuance process with stamping and signatures



  • Money &amp; Banking

ant

Ashes of Doom / directed by: Grant Munro, Don Arioli ; produced by: Robert Verrall, Wolf Koenig ; production agency: National Film Board of Canada (Montreal)

Montreal : National Film Board of Canada, 2008