cap

Boeing strike to impact Indian carriers growth: CAPA India

Airbus deliveries lower than expected, says CAPA India outlook for FY 2025




cap

Indian Railways renegotiates Vande Bharat order to 80 high-capacity trainsets; JV Kinet on-board

New order consists of 80 trainsets with a 24-coach configuration, instead of originally planned 16




cap

After AIX Connect merger, Air India Express sets sights on capacity and market share growth

The merger enhances operational synergies and marks a step forward in the parent company’s ambitious Vihaan transformation initiative




cap

Government moots ₹2,000 crore funding for Pawan Hans to revive operations, enhance capacity

Proposed fund infusion to help Pawan Hans provide consultation services for heliport construction, introduce seaplane services as well as add new choppers to its fleet




cap

Kandla to become 390 MTPA capacity-port by 2030: Deendayal Port Authority chairman

Kandla port is looking to offer three oil jetties and a couple of cargo jetties to private players under the PPP mode




cap

Ahammune Biosciences raises Pre-Series A funding from Ideaspring Capital, Indian Angel Network




cap

A captivating Bharatanatyam performance on the shores of Visakhapatnam

Aayana Dance Company’s hour-long Bharatanatyam dance presentation captivates the audience in Visakhapatnam. The event was an initiative of Paramparaa Foundation




cap

Market capitalization of privately listed companies surged 6.4 times, PSUs grew 5 times over last 10 years: Motilal Oswal




cap

Dilute nanocomposites for capacitive energy storage: progress, challenges and prospects

Chem. Sci., 2024, Accepted Manuscript
DOI: 10.1039/D4SC05437G, Perspective
Open Access
Li Li, Wenhan Xu, Guanchun Rui, Shixian Zhang, Qiming Zhang, Qing Wang
Electrostatic capacitors (ECs) are critical components in advanced electronics and electric power systems due to their rapid charge-discharge rate and high power density. While polymers are ideal for ECs due...
The content of this RSS Feed (c) The Royal Society of Chemistry




cap

Should you invest in the Mirae Asset’s new mid and small cap factor ETF

Mirae Asset Nifty MidSmallcap400 Momentum Quality 100 ETF offers a blend of passive and smart-beta investing




cap

Markets correlate with economic performance, not political dispensation: Ashish Somaiyaa, CEO, WhiteOak Capital AMC

Ashish Somaiyaa, CEO, WhiteOak Capital AMC, on the impact of elections on the market and more




cap

Index funds to capitalise on corrections

Buying passive mutual funds, which simply mirror the basket of stocks making up an index, can help capitalising on a correction




cap

Quant MF under SEBI scrutiny: Deep dive into their mid- & small-cap schemes

A look at the stock positions of Quant Mutual Fund’s Mid- and Small-cap schemes, stress-test results (as of May 2024) and adjusted Net Asset Value (NAV)




cap

Navi Nifty 500 Multicap 50:25:25 Index Fund: Should you subscribe?

The only fund tracking the Nifty 500 Multicap 50:25:25 Index till date. But does it offer some unique value proposition?




cap

Kotak Nifty Midcap 50 Index Fund: Just another Midcap Index Fund?

Only the second fund to give exposure to the Nifty Midcap 50 Index, how does it differ from other funds giving exposure to Midcaps?




cap

ICICI Prudential Flexicap Fund: A steady outperformer for the long term

ICICI Prudential Flexicap’s performance over the past three years places it in the top-quartile of its category




cap

Missed market turning points in our mid-cap fund: DSP MF’s Kalpen Parekh

Kalpen Parekh of DSP Mutual Fund on his fund house’s investment philosophy, the markets, valuation metrics and more




cap

Mirae Asset Large Cap Fund: Should you invest?

Large-caps offer relative safety from froth and Mirae Asset Large Cap Fund performed well in the class




cap

Why this large cap fund is a suitable investment in current volatile market

Canara Robeco Blue Chip Equity has consistently beaten the benchmark and delivered above-average performance




cap

Why investing in this large-cap fund can be rewarding in choppy markets

Kotak Bluechip is a steady outperformer and suits investors, with a medium risk appetite, saving for long-term goals




cap

TN: Leopard kills dog at home stay in Valparai, locals demand immediate capture




cap

Andhra Pradesh Chief Minister lays foundation for three renewable energy projects with a total capacity of 5,314MW

A JV pact was also signed by the State power corporation and the National Hydropower Corporation for two pumped storage hydropower projects




cap

New Zealand Maori begin march on capital to protest indigenous treaty bill

While the march, or hikoi, was sparked by the bill currently before parliament, organisers want the march to ignite a broader conversation about New Zealand's relationship to Maori, Eru Kapa Kingi said




cap

Capillary action-driven surface-enhanced Raman spectroscopy (SERS) for the identification of phthalocyanine blue in modern paintings based on the BPG spot test

Anal. Methods, 2024, 16,2147-2151
DOI: 10.1039/D3AY01378B, Technical Note
Shao-Chun Hsueh, Ling-Hsuan Wang, Yung-Chen Liao, Hui-Yu Chiang, Cheng-Huang Lin
A method for the extraction and accumulation of Ag nanoparticles utilizing capillary action through a piece of triangular-shaped cotton paper is reported.
The content of this RSS Feed (c) The Royal Society of Chemistry




cap

A screening method for the quantitative determination of selective androgen receptor modulators (SARMs) in capsules by high resolution 19F- and 1H-NMR spectroscopy

Anal. Methods, 2024, 16,2135-2146
DOI: 10.1039/D4AY00188E, Paper
Alessandro Maccelli, Anna Borioni, Federica Aureli, Maria Cristina Gaudiano, Livia Manna, Mariangela Raimondo
A new method for rapid determination of selective androgenic receptor modulators (SARMs) andarine, cardarine, ligandrol, ostarine and S-23 in capsules by 1H- and 19F-high resolution NMR spectroscopy was described and validated.
The content of this RSS Feed (c) The Royal Society of Chemistry




cap

Meet capella star Alaa Wardi




cap

Generation and capture of naphthoquinonynes: a new frontier in the development of trypanocidal quinones via aryne chemistry

RSC Med. Chem., 2024, Advance Article
DOI: 10.1039/D4MD00558A, Research Article
Laura P. R. Figueroa, Renato L. de Carvalho, Renata G. Almeida, Esther R. S. Paz, Emilay B. T. Diogo, Maria H. Araujo, Warley S. Borges, Victor F. S. Ramos, Rubem F. S. Menna-Barreto, James M. Wood, John F. Bower, Eufrânio N. da Silva Júnior
This article presents A-ring functionalized quinones via a modern and efficient new strategy involving the generation and capture of benzyne quinones and their evaluation against Trypanosoma cruzi.
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




cap

Tiruchi Corporation embarks on special drive at night to capture and sterilise street dogs

About 125 stray dogs have been caught and sterilised at Tiruchi animal birth control centres in the last 10 days after the Corporation launched the special drive




cap

630: Frostapalooza Recap, Follow Up, and Messy Codebases

Chris has a birthday today 🎉, we recap our Frostapalooza experience celebrating Brad Frost's birthday, do all codebases become a mess, Mermaid, TLDraw, and Figjam thoughts, making tiny games, where's the follow up in web and world news, and what's the current state of CMS' on the web?




cap

As India’s installed solar capacity crosses 90GW, a look at the journey 

Sun-sational growth: In September, India’s installed solar power capacity reached 90,762 MW. Given the current rate of monthly capacity additions, there is little doubt that installed capacity will exceed 100 GW in 2024-25.




cap

CEA plans 613 GW RE transmission capacity

Higher generation of renewable energy challenges grid stability




cap

Can we escape the gas chamber we have walked into?

All countries are falling short of their promise to do their mite for climate action




cap

Jamiat cautions NDA partners, says ‘crutches’ cannot escape responsibility for Waqf Bill

The Jamiat Ulama-i-Hind urged NDA partners TDP and JD(U) to heed Muslim sentiments on the contentious issue surrounding the Waqf (Amendment) Bill, 2024




cap

IndusInd Bank shares plunge 17%; Mcap erodes by ₹15,572 crore amid disappointing earnings

Total income rose to ₹14,871 crore in the quarter under review, from ₹13,530 crore in the same period a year ago, IndusInd Bank said in a regulatory filing




cap

Co-encapsulation of organic polymers and inorganic superparamagnetic iron oxide colloidal crystals requires matched diffusion time scales

Soft Matter, 2024, 20,8312-8325
DOI: 10.1039/D4SM00935E, Paper
Open Access
Brian K. Wilson, Robert K. Prud’homme
Composite nanoparticles co-encapsulate organic materials with inorganic primary colloids. Producing “stoichiometric NPs”, where all NPs contain organic and inorganic species at similar ratios, requires matched diffusion-aggregation time scale.
The content of this RSS Feed (c) The Royal Society of Chemistry




cap

The impact of cross-linker distribution on magnetic nanogels: encapsulation, transport and controlled release of the tracer

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00797B, Paper
Open Access
Ivan S. Novikau, Ekaterina V. Novak, Sofia S. Kantorovich
Differences in crosslinker concentration between the core and periphery of a magnetic nanogel slow down the release of a non-magnetic cargo.
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




cap

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




cap

Editorial. Rail Budget’s capex boost welcome, but concerns remain

The Railways must attract higher freight volumes, even as it positions itself as a high end passenger travel option




cap

RBI asks NBFCs to maintain at least 25% borrowings from capital market

Move will lead to lower reliance on bank borrowing



  • Money &amp; Banking

cap

Finova Capital raises $135 million in Series E round led by Avataar Venture Partners, Sofina, others

Finova will use the funds to grow its loan book, invest in technology, expand geographically and further its vision of enabling financial inclusion at scale



  • Money &amp; Banking

cap

Muthoot Capital posts net profit of ₹16 crore in Q2 FY25

The total income for the quarter touched ₹Rs109.79 crore and the company disbursed loans amounting to ₹Rs643.50 crore during the quarter



  • Money &amp; Banking

cap

Deutsche Bank infuses ₹5,113 crore capital into India operations

Over the last decade, the bank has significantly increased its capital investments, tripling the capital base for Deutsche Bank Group in India



  • Money &amp; Banking

cap

Capt. Chowta to meet people today




cap

Govt. is promoting ‘land jihad’ by planning to claim farmlands, alleges Capt. Brijesh Chowta

BJP will stand by the farmers in this fight to get back their land. The BJP will continue its fight till amendments are brought in for better use of Waqf properties, says the MP




cap

Capt. Chowta seeks coffee board’s support for arecanut growers of Dakshina Kannada to grow coffee




cap

Union govt. releases ₹343.74 crore to upgrade 11.2 km stretch of Charmadi Ghat on NH 73, says Capt. Chowta




cap

Sully: Captain America




cap

Force 2: Do not put the thinking cap on!

Abhinay Deo just wants to please us with long chases and car crashes, bullets and blood.




cap

Macrotech Developers’ net debt rises 43.5% in Q1 on higher capex for land, construction




cap

Nyati Group onboards Navigo’s futuristic capabilities to boost sales 

The move aligns with the Group’s vision of utilizing cutting-edge technology to improve the home-buying experience and boost operational efficiency in property sales