k Bank Nifty prediction today – November 4, 2024: Bears gaining momentum By www.thehindubusinessline.com Published On :: Mon, 04 Nov 2024 10:33:55 +0530 Bank Nifty futures might see a fall to 50,800 Full Article Technical Analysis
k Copper futures likely to rally, go long By www.thehindubusinessline.com Published On :: Mon, 04 Nov 2024 12:55:39 +0530 The November contract can touch ₹875 Full Article Commodity Calls
k F&O Query: Should you hold call options on Reliance Industries and ICICI Bank? By www.thehindubusinessline.com Published On :: Mon, 04 Nov 2024 13:30:44 +0530 Full Article Derivatives
k Today’s Stock Recommendation: November 5, 2024 By www.thehindubusinessline.com Published On :: Tue, 05 Nov 2024 06:30:00 +0530 The stock idea that we have for you today is Angel One Full Article Video
k Stock to buy today: Angel One (₹2,886.35): BUY By www.thehindubusinessline.com Published On :: Tue, 05 Nov 2024 06:30:00 +0530 Angel One share price can rise to ₹3,400 after some more fall from here Full Article Technical Analysis
k Bank Nifty Prediction today – Nov 5, 2024: Might fall off a barrier, initiate short By www.thehindubusinessline.com Published On :: Tue, 05 Nov 2024 10:29:43 +0530 Bank Nifty November futures areis likely to see a decline Full Article Technical Analysis
k Day trading guide for November 5, 2024: Intraday supports, resistances for Nifty50 stocks By www.thehindubusinessline.com Published On :: Tue, 05 Nov 2024 12:01:00 +0530 Here are the intraday supports and resistances for widely traded stocks such as Reliance Industries, ITC, ONGC, Infosys, HDFC Bank, TCS, and SBI Full Article Day trading guide
k Weekly Rupee View: Rupee set to witness higher volatility By www.thehindubusinessline.com Published On :: Tue, 05 Nov 2024 17:00:15 +0530 US election and the Fed policy announcement are the key events Full Article Technical Analysis
k Day trading guide for November 6, 2024: Intraday supports, resistances for Nifty50 stocks By www.thehindubusinessline.com Published On :: Wed, 06 Nov 2024 06:20:00 +0530 Here are the intraday supports and resistances for widely traded stocks such as Reliance Industries, ITC, ONGC, Infosys, HDFC Bank, TCS, and SBI Full Article Day trading guide
k Stock to buy today: Tata Steel (₹152.30) By www.thehindubusinessline.com Published On :: Wed, 06 Nov 2024 06:30:00 +0530 For the short term, traders can buy shares of Tata Steel at ₹152 and on a dip to ₹148 Full Article Technical Analysis
k Bank Nifty Prediction today – Nov 6, 2024: Intraday trend uncertain, stay out By www.thehindubusinessline.com Published On :: Wed, 06 Nov 2024 11:26:19 +0530 Bank Nifty futures is trading between key levels at 52,000 and 52,800 Full Article Technical Analysis
k Zinc futures remain above key support By www.thehindubusinessline.com Published On :: Wed, 06 Nov 2024 15:58:57 +0530 Traders can consider longs on dips Full Article Commodity Calls
k Day trading guide for November 7, 2024: Intraday supports, resistances for Nifty50 stocks By www.thehindubusinessline.com Published On :: Thu, 07 Nov 2024 06:19:00 +0530 Here are the intraday supports and resistances for widely traded stocks such as Reliance Industries, ITC, ONGC, Infosys, HDFC Bank, TCS, and SBI Full Article Day trading guide
k Stock to buy today: PNB Housing Finance (₹999.2) By www.thehindubusinessline.com Published On :: Thu, 07 Nov 2024 06:30:00 +0530 The price action over the past couple of weeks indicates good buying interest Full Article Technical Analysis
k Bank Nifty Prediction today – Nov 7, 2024: Hovering around a support, short if this base is broken By www.thehindubusinessline.com Published On :: Thu, 07 Nov 2024 10:34:16 +0530 Bank Nifty futures can fall to 51,300 if it slips below 52,000 Full Article Technical Analysis
k Day trading guide for November 8, 2024: Intraday supports, resistances for Nifty50 stocks By www.thehindubusinessline.com Published On :: Fri, 08 Nov 2024 06:26:00 +0530 Here are the intraday supports and resistances for widely traded stocks such as Reliance Industries, ITC, ONGC, Infosys, HDFC Bank, TCS, and SBI Full Article Day trading guide
k Stock to buy today: Deepak Nitrite (₹2,815.65) By www.thehindubusinessline.com Published On :: Fri, 08 Nov 2024 06:30:00 +0530 Although there was a price drop on Thursday, the scrip retains its bullishness Full Article Technical Analysis
k Nifty prediction today – Nov 8, 2024: Intraday outlook is unclear. Stay out of the market By www.thehindubusinessline.com Published On :: Fri, 08 Nov 2024 10:33:16 +0530 Nifty 50 November futures contract can oscillate in a range of 24,150-24,400 Full Article Technical Analysis
k Bank Nifty prediction today – Nov 8, 2024: Trading within a range By www.thehindubusinessline.com Published On :: Fri, 08 Nov 2024 10:38:01 +0530 Bank Nifty futures is currently stuck between 52,000 and 52,500 Full Article Technical Analysis
k When the taxman comes knocking By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:02:28 +0530 Here’s a lowdown on notices/ intimations from the I-T department and what they mean for taxpayers Full Article Portfolio
k Currency Outlook: Trump’s victory fuels dollar rally By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:40:02 +0530 Rupee makes the much-awaited bearish breakout Full Article Technical Analysis
k F&O Tracker: Index futures seek direction By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:40:28 +0530 Participants need to wait for a confirmatory move Full Article Derivatives
k Bullion Cues: Rally likely post dip By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:40:49 +0530 Traders can buy at lower levels Full Article Derivatives
k Crude Check: No clarity in trend By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:41:07 +0530 Traders can avoid new positions Full Article Derivatives
k Bandu’s Blockbusters for Nov 10, 2024 By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:41:19 +0530 Guess the stock that will give the best return by next Friday Full Article Technical Analysis
k Tech Query: What is the outlook for TVS Holdings, Gujarat State Fertilizers & Chemicals (GSFC), Ideaforge Technology and Niyogin Fintech? By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:43:09 +0530 We zoom in on the prospects of TVS Holdings, as also the prospects of three other stocks — Gujarat State Fertilizers & Chemicals (GSFC), Ideaforge Technology and Niyogin Fintech Full Article Technical Analysis
k Index Outlook: Vulnerable Sensex, Nifty 50 struggle By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:43:26 +0530 Strong resistance coming up to halt the rally in the Dow Jones Full Article Technical Analysis
k Movers & Shakers: Stocks that will see action this week By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:43:41 +0530 Here is what the charts say about IGL, JSW Energy and Max Financial Services Full Article Technical Analysis
k Trump, tariffs and tax cuts – Can they power the US stock markets ahead? By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 20:42:45 +0530 As Trump 2.0 gets set to take control, the US markets are a play of opposing factors Full Article Big Story
k Market correction broad-based with 7 of 10 stocks of BSE AllCap seeing a fall By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 22:02:55 +0530 FPI outflows overlapping with earnings slowdown and the return of the dragon weigh in Full Article Portfolio
k Stock to buy today: Mahindra & Mahindra (₹2,979.25): BUY By www.thehindubusinessline.com Published On :: Mon, 11 Nov 2024 06:30:00 +0530 Mahindra & Mahindra share price can rise to ₹3,200 Full Article Technical Analysis
k Bank Nifty Prediction Today – November 11, 2024: Wait for dips to go long By www.thehindubusinessline.com Published On :: Mon, 11 Nov 2024 11:17:11 +0530 Bank Nifty November Futures can rise to 52,500 if the bounce sustains Full Article Technical Analysis
k Day trading guide for November 12, 2024: Intraday supports, resistances for Nifty50 stocks By www.thehindubusinessline.com Published On :: Tue, 12 Nov 2024 06:07:00 +0530 Here are the intraday supports and resistances for widely traded stocks such as Reliance Industries, ITC, ONGC, Infosys, HDFC Bank, TCS, and SBI Full Article Day trading guide
k Stock to buy today: HCL Technologies (₹1,867): BUY By www.thehindubusinessline.com Published On :: Tue, 12 Nov 2024 06:30:00 +0530 HCL Technologies share price can rise to ₹1,935 Full Article Technical Analysis
k Let’s talk about money By www.quirksmode.org Published On :: Tue, 29 Jun 2021 12:23:49 +0100 Let’s talk about money! Let’s talk about how hard it is to pay small amounts online to people whose work you like and who could really use a bit of income. Let’s talk about how Coil aims to change that. Taking a subscription to a website is moderately easy, but the person you want to pay must have enabled them. Besides, do you want to purchase a full subscription in order to read one or two articles per month? Sending a one-time donation is pretty easy as well, but, again, the site owner must have enabled them. And even then it just gives them ad-hoc amounts that they cannot depend on. Then there’s Patreon and Kickstarter and similar systems, but Patreon is essentially a subscription service while Kickstarter is essentially a one-time donation service, except that both keep part of the money you donate. And then there’s ads ... Do we want small content creators to remain dependent on ads and thus support the entire ad ecosystem? I, personally, would like to get rid of them. The problem today is that all non-ad-based systems require you to make conscious decisions to support someone — and even if you’re serious about supporting them you may forget to send in a monthly donation or to renew your subscription. It sort-of works, but the user experience can be improved rather dramatically. That’s where Coil and the Web Monetization Standard come in. Web Monetization The idea behind Coil is that you pay for what you consume easily and automatically. It’s not a subscription - you only pay for what you consume. It’s not a one-time donation, either - you always pay when you consume. Payments occur automatically when you visit a website that is also subscribed to Coil, and the amount you pay to a single site owner depends on the time you spend on the site. Coil does not retain any of your money, either — everything goes to the people you support. In this series of four articles we’ll take a closer look at the architecture of the current Coil implementation, how to work with it right now, the proposed standard, and what’s going to happen in the future. Overview So how does Coil work right now? Both the payer and the payee need a Coil account to send and receive money. The payee has to add a <meta> tag with a Coil payment pointer to all pages they want to monetize. The payer has to install the Coil extension in their browsers. You can see this extension as a polyfill. In the future web monetization will, I hope, be supported natively in all browsers. Once that’s done the process works pretty much automatically. The extension searches for the <meta> tag on any site the user visits. If it finds one it starts a payment stream from payer to payee that continues for as long as the payer stays on the site. The payee can use the JavaScript API to interact with the monetization stream. For instance, they can show extra content to paying users, or keep track of how much a user paid so far. Unfortunately these functionalities require JavaScript, and the hiding of content is fairly easy to work around. Thus it is not yet suited for serious business purposes, especially in web development circles. This is one example of how the current system is still a bit rough around the edges. You’ll find more examples in the subsequent articles. Until the time browsers support the standard natively and you can determine your visitors’ monetization status server-side these rough bits will continue to exist. For the moment we will have to work with the system we have. This article series will discuss all topics we touched on in more detail. Start now! For too long we have accepted free content as our birthright, without considering the needs of the people who create it. This becomes even more curious for articles and documentation that are absolutely vital to our work as web developers. Take a look at this list of currently-monetized web developer sites. Chances are you’ll find a few people whose work you used in the past. Don’t they deserve your direct support? Free content is not a right, it’s an entitlement. The sooner we internalize this, and start paying independent voices, the better for the web. The only alternative is that all articles and documentation that we depend on will written by employees of large companies. And employees, no matter how well-meaning, will reflect the priorities and point of view of their employer in the long run. So start now. In order to support them you should invest a bit of time once and US$5 per month permanently. I mean, that’s not too much to ask, is it? Continue I wrote this article and its sequels for Coil, and yes, I’m getting paid. Still, I believe in what they are doing, so I won’t just spread marketing drivel. Initially it was unclear to me exactly how Coil works. So I did some digging, and the remaining parts of this series give a detailed description of how Coil actually works in practice. For now the other three articles will only be available on dev.to. I just published part 2, which gives a high-level overview of how Coil works right now. Part 3 will describe the meta tag and the JavaScript API, and in part 4 we’ll take a look at the future, which includes a formal W3C standard. Those parts will be published next week and the week after that. Full Article Monetisation
k Breaking the web forward By www.quirksmode.org Published On :: Thu, 12 Aug 2021 16:19:05 +0100 Safari is holding back the web. It is the new IE, after all. In contrast, Chrome is pushing the web forward so hard that it’s starting to break. Meanwhile web developers do nothing except moan and complain. The only thing left to do is to pick our poison. Safari is the new IE Recently there was yet another round of “Safari is the new IE” stories. Once Jeremy’s summary and a short discussion cleared my mind I finally figured out that Safari is not IE, and that Safari’s IE-or-not-IE is not the worst problem the web is facing. Perry Sun argues that for developers, Safari is crap and outdated, emulating the old IE of fifteen years ago in this respect. He also repeats the theory that Apple is deliberately starving Safari of features in order to protect the app store, and thus its bottom line. We’ll get back to that. The allegation that Safari is holding back web development by its lack of support for key features is not new, but it’s not true, either. Back fifteen years ago IE held back the web because web developers had to cater to its outdated technology stack. “Best viewed with IE” and all that. But do you ever see a “Best viewed with Safari” notice? No, you don’t. Another browser takes that special place in web developers’ hearts and minds. Chrome is the new IE, but in reverse Jorge Arango fears we’re going back to the bad old days with “Best viewed in Chrome.” Chris Krycho reinforces this by pointing out that, even though Chrome is not the standard, it’s treated as such by many web developers. “Best viewed in Chrome” squares very badly with “Safari is the new IE.” Safari’s sad state does not force web developers to restrict themselves to Safari-supported features, so it does not hold the same position as IE. So I propose to lay this tired old meme to rest. Safari is not the new IE. If anything it’s the new Netscape 4. Meanwhile it is Chrome that is the new IE, but in reverse. Break the web forward Back in the day, IE was accused of an embrace, extend, and extinguish strategy. After IE6 Microsoft did nothing for ages, assuming it had won the web. Thanks to web developers taking action in their own name for the first (and only) time, IE was updated once more and the web moved forward again. Google learned from Microsoft’s mistakes and follows a novel embrace, extend, and extinguish strategy by breaking the web and stomping on the bits. Who cares if it breaks as long as we go forward. And to hell with backward compatibility. Back in 2015 I proposed to stop pushing the web forward, and as expected the Chrome devrels were especially outraged at this idea. It never went anywhere. (Truth to tell: I hadn’t expected it to.) I still think we should stop pushing the web forward for a while until we figure out where we want to push the web forward to — but as long as Google is in charge that won’t happen. It will only get worse. On alert A blog storm broke out over the decision to remove alert(), confirm() and prompt(), first only the cross-origin variants, but eventually all of them. Jeremy and Chris Coyier already summarised the situation, while Rich Harris discusses the uses of the three ancient modals, especially when it comes to learning JavaScript. With all these articles already written I will only note that, if the three ancient modals are truly as horrendous a security issue as Google says they are it took everyone a bloody long time to figure that out. I mean, they turn 25 this year. Although it appears Firefox and Safari are on board with at least the cross-origin part of the proposal, there is no doubt that it’s Google that leads the charge. From Google’s perspective the ancient modals have one crucial flaw quite apart from their security model: they weren’t invented there. That’s why they have to be replaced by — I don’t know what, but it will likely be a very complicated API. Complex systems and arrogant priests rule the web Thus the new embrace, extend, and extinguish is breaking backward compatibility in order to make the web more complicated. Nolan Lawson puts it like this: we end up with convoluted specs like Service Worker that you need a PhD to understand, and yet we still don't have a working <dialog> element. In addition, Google can be pretty arrogant and condescending, as Chris Ferdinandi points out. The condescending “did you actually read it, it’s so clear” refrain is patronizing AF. It’s the equivalent of “just” or “simply” in developer documentation. I read it. I didn’t understand it. That’s why I asked someone whose literal job is communicating with developers about changes Chrome makes to the platform. This is not isolated to one developer at Chrome. The entire message thread where this change was surfaced is filled with folks begging Chrome not to move forward with this proposal because it will break all-the-things. If you write documentation or a technical article and nobody understands it, you’ve done a crappy job. I should know; I’ve been writing this stuff for twenty years. Extend, embrace, extinguish. And use lots of difficult words. Patience is a virtue As a reaction to web dev outcry Google temporarily halted the breaking of the web. That sounds great but really isn’t. It’s just a clever tactical move. I saw this tactic in action before. Back in early 2016 Google tried to break the de-facto standard for the mobile visual viewport that I worked very hard to establish. I wrote a piece that resonated with web developers, whose complaints made Google abandon the plan — temporarily. They tried again in late 2017, and I again wrote an article, but this time around nobody cared and the changes took effect and backward compatibility was broken. So the three ancient modals still have about 12 to 18 months to live. Somewhere in late 2022 to early 2023 Google will try again, web developers will be silent, and the modals will be gone. The pursuit of appiness But why is Google breaking the web forward at such a pace? And why is Apple holding it back? Safari is kept dumb to protect the app store and thus revenue. In contrast, the Chrome team is pushing very hard to port every single app functionality to the browser. Ages ago I argued we should give up on this, but of course no one listened. When performing Valley Kremlinology, it is useful to see Google policies as stemming from a conflict between internal pro-web and anti-web factions. We web developers mainly deal with the pro-web faction, the Chrome devrel and browser teams. On the other hand, the Android team is squarely in the anti-web camp. When seen in this light the pro-web camp’s insistence on copying everything appy makes excellent sense: if they didn’t Chrome would lag behind apps and the Android anti-web camp would gain too much power. While I prefer the pro-web over the anti-web camp, I would even more prefer the web not to be a pawn in an internal Google power struggle. But it has come to that, no doubt about it. Solutions? Is there any good solution? Not really. Jim Nielsen feels that part of the issue is the lack of representation of web developers in the standardization process. That sounds great but is proven not to work. Three years ago Fronteers and I attempted to get web developers represented and were met with absolute disinterest. Nobody else cared even one shit, and the initiative sank like a stone. So a hypothetical web dev representative in W3C is not going to work. Also, the organisational work would involve a lot of unpaid labour, and I, for one, am not willing to do it again. Neither is anyone else. So this is not the solution. And what about Firefox? Well, what about it? Ten years ago it made a disastrous mistake by ignoring the mobile web for way too long, then it attempted an arrogant and uninformed come-back with Firefox OS that failed, and its history from that point on is one long slide into obscurity. That’s what you get with shitty management. Pick your poison So Safari is trying to slow the web down. With Google’s move-fast-break-absofuckinglutely-everything axiom in mind, is Safari’s approach so bad? Regardless of where you feel the web should be on this spectrum between Google and Apple, there is a fundamental difference between the two. We have the tools and procedures to manage Safari’s disinterest. They’re essentially the same as the ones we deployed against Microsoft back in the day — though a fundamental difference is that Microsoft was willing to talk while Apple remains its old haughty self, and its “devrels” aren’t actually allowed to do devrelly things such as managing relations with web developers. (Don’t blame them, by the way. If something would ever change they’re going to be our most valuable internal allies — just as the IE team was back in the day.) On the other hand, we have no process for countering Google’s reverse embrace, extend, and extinguish strategy, since a section of web devs will be enthusiastic about whatever the newest API is. Also, Google devrels talk. And talk. And talk. And provide gigs of data that are hard to make sense of. And refer to their proprietary algorithms that “clearly” show X is in the best interest of the web — and don’t ask questions! And make everything so fucking complicated that we eventually give up and give in. So pick your poison. Shall we push the web forward until it’s broken, or shall we break it by inaction? What will it be? Privately, my money is on Google. So we should say goodbye to the old web while we still can. Full Article Web thinking
k position: sticky, draft 1 By www.quirksmode.org Published On :: Wed, 08 Sep 2021 18:44:23 +0100 I’m writing the position: sticky part of my book, and since I never worked with sticky before I’m not totally sure if what I’m saying is correct. This is made worse by the fact that there are no very clear tutorials on sticky. That’s partly because it works pretty intuitively in most cases, and partly because the details can be complicated. So here’s my draft 1 of position: sticky. There will be something wrong with it; please correct me where needed. The inset properties are top, right, bottom and left. (I already introduced this terminology earlier in the chapter.) Introduction position: sticky is a mix of relative and fixed. A sticky box takes its normal position in the flow, as if it had position: relative, but if that position scrolls out of view the sticky box remains in a position defined by its inset properties, as if it has position: fixed. A sticky box never escapes its container, though. If the container start or end scrolls past the sticky box abandons its fixed position and sticks to the top or the bottom of its container. It is typically used to make sure that headers remain in view no matter how the user scrolls. It is also useful for tables on narrow screens: you can keep headers or the leftmost table cells in view while the user scrolls. Scroll box and container A sticky box needs a scroll box: a box that is able to scroll. By default this is the browser window — or, more correctly, the layout viewport — but you can define another scroll box by setting overflow on the desired element. The sticky box takes the first ancestor that could scroll as its scroll box and calculates all its coordinates relative to it. A sticky box needs at least one inset property. These properties contain vital instructions, and if the sticky box doesn’t receive them it doesn’t know what to do. A sticky box may also have a container: a regular HTML element that contains the sticky box. The sticky box will never be positioned outside this container, which thus serves as a constraint. The first example shows this set-up. The sticky <h2> is in a perfectly normal <div>, its container, and that container is in a <section> that is the scroll box because it has overflow: auto. The sticky box has an inset property to provide instructions. The relevant styles are: section.scroll-container { border: 1px solid black; width: 300px; height: 300px; overflow: auto; padding: 1em; } div.container { border: 1px solid black; padding: 1em; } section.scroll-container h2 { position: sticky; top: 0; } The rules Sticky header Regular content Regular content Regular content Regular content Regular content Regular content Regular content Content outside container Content outside container Content outside container Content outside container Content outside container Content outside container Now let’s see exactly what’s going on. A sticky box never escapes its containing box. If it cannot obey the rules that follow without escaping from its container, it instead remains at the edge. Scroll down until the container disappears to see this in action. A sticky box starts in its natural position in the flow, as if it has position: relative. It thus participates in the default flow: if it becomes higher it pushes the paragraphs below it downwards, just like any other regular HTML element. Also, the space it takes in the normal flow is kept open, even if it is currently in fixed position. Scroll down a little bit to see this in action: an empty space is kept open for the header. A sticky box compares two positions: its natural position in the flow and its fixed position according to its inset properties. It does so in the coordinate frame of its scroll box. That is, any given coordinate such as top: 20px, as well as its default coordinates, is resolved against the content box of the scroll box. (In other words, the scroll box’s padding also constrains the sticky box; it will never move up into that padding.) A sticky box with top takes the higher value of its top and its natural position in the flow, and positions its top border at that value. Scroll down slowly to see this in action: the sticky box starts at its natural position (let’s call it 20px), which is higher than its defined top (0). Thus it rests at its position in the natural flow. Scrolling up a few pixels doesn’t change this, but once its natural position becomes less than 0, the sticky box switches to a fixed layout and stays at that position. The sticky box has bottom: 0 Regular content Regular content Regular content Regular content Regular content Regular content Sticky header Content outside container Content outside container Content outside container Content outside container Content outside container Content outside container It does the same for bottom, but remember that a bottom is calculated relative to the scroll box’s bottom, and not its top. Thus, a larger bottom coordinate means the box is positioned more to the top. Now the sticky box compares its default bottom with the defined bottom and uses the higher value to position its bottom border, just as before. With left, it uses the higher value of its natural position and to position its left border; with right, it does the same for its right border, bearing in mind once more that a higher right value positions the box more to the left. If any of these steps would position the sticky box outside its containing box it takes the position that just barely keeps it within its containing box. Details Sticky header Very, very long line of content to stretch up the container quite a bit Regular content Regular content Regular content Regular content Regular content Regular content Content outside container Content outside container Content outside container Content outside container Content outside container Content outside container Content outside container The four inset properties act independently of one another. For instance the following box will calculate the position of its top and left edge independently. They can be relative or fixed, depending on how the user scrolls. p.testbox { position: sticky; top: 0; left: 0; } Content outside container Content outside container Content outside container Content outside container Content outside container The sticky box has top: 0; bottom: 0 Regular content Regular content Regular content Regular content Sticky header Regular content Regular content Regular content Regular content Regular content Content outside container Content outside container Content outside container Content outside container Content outside container Setting both a top and a bottom, or both a left and a right, gives the sticky box a bandwidth to move in. It will always attempt to obey all the rules described above. So the following box will vary between 0 from the top of the screen to 0 from the bottom, taking its default position in the flow between these two positions. p.testbox { position: sticky; top: 0; bottom: 0; } No container Regular content Regular content Sticky header Regular content Regular content Regular content Regular content Regular content Regular content Regular content Regular content Regular content So far we put the sticky box in a container separate from the scroll box. But that’s not necessary. You can also make the scroll box itself the container if you wish. The sticky element is still positioned with respect to the scroll box (which is now also its container) and everything works fine. Several containers Sticky header Regular content Regular content Regular content Regular content Regular content Regular content Regular content Content outside container Content outside container Content outside outer container Content outside outer container Or the sticky item can be several containers removed from its scroll box. That’s fine as well; the positions are still calculated relative to the scroll box, and the sticky box will never leave its innermost container. Changing the scroll box Sticky header The container has overflow: auto. Regular content Regular content Regular content Regular content Regular content Regular content Content outside container Content outside container Content outside container One feature that catches many people (including me) unaware is giving the container an overflow: auto or hidden. All of a sudden it seems the sticky header doesn’t work any more. What’s going on here? An overflow value of auto, hidden, or scroll makes an element into a scroll box. So now the sticky box’s scroll box is no longer the outer element, but the inner one, since that is now the closest ancestor that is able to scroll. The sticky box appears to be static, but it isn’t. The crux here is that the scroll box could scroll, thanks to its overflow value, but doesn’t actually do so because we didn’t give it a height, and therefore it stretches up to accomodate all of its contents. Thus we have a non-scrolling scroll box, and that is the root cause of our problems. As before, the sticky box calculates its position by comparing its natural position relative to its scroll box with the one given by its inset properties. Point is: the sticky box doesn’t scroll relative to its scroll box, so its position always remains the same. Where in earlier examples the position of the sticky element relative to the scroll box changed when we scrolled, it no longer does so, because the scroll box doesn’t scroll. Thus there is no reason for it to switch to fixed positioning, and it stays where it is relative to its scroll box. The fact that the scroll box itself scrolls upward is irrelevant; this doesn’t influence the sticky box in the slightest. Sticky header Regular content Regular content Regular content Regular content Regular content Regular content Regular content Content outside container Content outside container Content outside container Content outside container Content outside container Content outside container One solution is to give the new scroll box a height that is too little for its contents. Now the scroll box generates a scrollbar and becomes a scrolling scroll box. When we scroll it the position of the sticky box relative to its scroll box changes once more, and it switches from fixed to relative or vice versa as required. Minor items Finally a few minor items: It is no longer necessary to use position: -webkit-sticky. All modern browsers support regular position: sticky. (But if you need to cater to a few older browsers, retaining the double syntax doesn’t hurt.) Chrome (Mac) does weird things to the borders of the sticky items in these examples. I don’t know what’s going on and am not going to investigate. Full Article CSS for JavaScripters
k U.S. firm to upskill poor women in employable sectors By www.thehindu.com Published On :: Fri, 14 Jul 2023 09:30:12 +0530 Mohit Malik, COO, GSPANN Technologies, said the centre would also train the youth from the community in various employability-driven technical skills. Full Article Telangana
k Nirdiganta: A first-of-its-kind incubation centre for theatre By www.thehindu.com Published On :: Fri, 14 Jul 2023 11:42:03 +0530 Actor Prakash Raj’s innovative incubator for theatre and arts offers a comprehensive production process, stipends for actors/techs, lodging, kitchen and tech support. It also plans to promote fine arts and film in the future. Full Article Metroplus
k Prakash Raj on creating ‘Nirdiganta’, an incubation centre for theatre, and getting back on stage By www.thehindu.com Published On :: Fri, 14 Jul 2023 11:55:55 +0530 Actor Prakash Raj says fans will soon get to see him perform live on stage Full Article Metroplus
k Govt. hiding behind private firm instead of solving Dharani issues: Kishan Reddy By www.thehindu.com Published On :: Tue, 18 Jul 2023 00:04:39 +0530 Full Article Telangana
k IISc study reveals that picolinic acid can block viruses causing SARS-CoV-2 and influenza A By www.thehindu.com Published On :: Tue, 18 Jul 2023 13:09:23 +0530 The study describes the compound’s remarkable ability to disrupt the entry of enveloped viruses into the host’s cell and prevent infection Full Article Bangalore
k Congress leaders project a united stand from Komatireddy’s luncheon meeting By www.thehindu.com Published On :: Thu, 20 Jul 2023 06:45:45 +0530 Bus yatra and more interactions with people suggested Full Article Telangana
k Rana Daggubati’s Spirit Media to launch ‘Hiranyakashyap’ movie, ‘Minnal Murali’ comic and more at San Diego Comic-Con 2023 By www.thehindu.com Published On :: Thu, 20 Jul 2023 12:39:02 +0530 Actor-producer Rana Daggubati’s Spirit Media debuts at San Diego Comic-Con 2023 by announcing the mythological film ‘Hiranyakashyap’ and comic based on the superhero film ‘Minnal Murali’ Full Article Movies
k Big Kannada films fail to keep the promise while fans snub small gems By www.thehindu.com Published On :: Sat, 22 Jul 2023 19:40:11 +0530 Full Article Bengaluru
k After a dull six months, Hostel Hudugaru Bekagiddare brings cheer to Kannada film industry By www.thehindu.com Published On :: Sat, 22 Jul 2023 21:11:12 +0530 After a memorable 2022, the industry suffered a slump in the first half of this year with only Daredevil Musthafa providing a consolation Full Article Bengaluru
k Scare at Kaddam project as it gets higher flood than discharge By www.thehindu.com Published On :: Thu, 27 Jul 2023 09:47:39 +0530 People in 12 villages downstream vacated, shifted to relief camps. Spillway discharge of flood waters begins at Jurala as Almatti, Narayanpur let out water Full Article Telangana
k Ram Charan launches the massy trailer of Chiranjeevi’s ‘Bholaa Shankar’ By www.thehindu.com Published On :: Thu, 27 Jul 2023 16:55:50 +0530 Ram Charan unveils the trailer of his father and superstar Chiranjeevi’s ‘Bholaa Shankar’, directed by Meher Ramesh and also featuring Tamannaah Bhatia, Keerthy Suresh and Sushanth Full Article Movies
k A newly-opened pizzeria brings Kundapuri ghee roast paneer and Kerala chicken roast flavours in pizzas By www.thehindu.com Published On :: Wed, 02 Aug 2023 17:06:51 +0530 Dollops of sherry leek or fresh arugula? Choose your pick from artisanal pizzas and sauces made from scratch at the newly-opened pizzeria Full Article Food
k Ram Mohan Library: A 120-year-old treasure trove of books in Vijayawada By www.thehindu.com Published On :: Sat, 05 Aug 2023 18:10:03 +0530 At a time when libraries are losing their sheen owing to a lack of patronage, the century-old Ram Mohan Library in Vijaywada continues to attract book lovers to its vast collection of books and its illustrious history Full Article Vijayawada