Davidcorny's Posts
Nairaland Forum › Davidcorny's Profile › Davidcorny's Posts
GREATIGBOMAN:I'm trying to switch the image nested in the picture tag between desktop and mobile as the screen increases above 800px or 50em. |
GREATIGBOMAN:The CSS is too long to wrap in my snipping tool but here's the html, you can see I'm using a picture element to substitute images with a width above 800px, this however does not work. I may just cancel everything and use a background-image property instead, then hide the mobile image if I can't find a solution.
|
GREATIGBOMAN:It really doesn't matter, I'll prefer to have answers even if I'm insulted so I understand than no answers at all. |
Books are a very good source of information, most people don't read. |
Hey guys, I was building a project from frontend mentor and this required using a media query for the desktop layout(built it mobile-first), the problem i have is that it has refused to change or respond to a media query of: @media (min-width: 50em) {} I mean literally nothing changed, the only clue i have from trying to debug this is that the media query responded a bit when i changed the main css with(article.card-body) to have a property of min-width. This is an example of the code https://codepen.io/david4bay/pen/MWBzdyQ I am using SASS(scss syntax). I've tried stackoverflow but all i got was insults and no answers. |
https://m.youtube.com/playlist?list=PLriKzYyLb28kR_CPMz8uierDWC2y3znI2 Why pay 30k when it's free on YouTube? |
truthCoder:If nairaland offered an award you'd get it bro. |
RIP young man, the person smiling all the time may be dead inside, fighting inner battles. |
Say YOLO to welcome and try as much things as possible. That's a sure path to destruction. |
Devdevdev:Technically you can. You can put the image as a background image with the url pointing to it then use a transform translate to position it outside the div. could use gap property if you aren't well versed in justify-items/justify-content. You can do it in several ways, make a grid container for the main card, place it at center with place-items: center, create two columns with grid, the left section should have 3 divs, h3 tag for product title, p tag for description and a button for the button, all spaced with justify items space around, which means the 3 divs needs to be in a parent div, then the clothe div on the right you can just use background image and give it a max with and max height while using transforms to stick it where you want it to, could also use position absolute for it while the parent div is relative then set a z-index in case the borders cut off. |
Great job, don't mind the posters who can only critique but can show nothing they've done. |
Yeah, a lot of times in uni. First time I got threatened by someone who owed me money and refused to pay, met him in a lodge beside mine where cultists were and he started shouting if I don't leave him he'll call his friends for me. Little did he know I've known those guys since me 200 level days and I was even dating the junior sister of one plus I dey give them small money anytime I go see my babe. I shout for the guy say him dey craze, say make him call them, he called them, they saw me just smiled and asked me why I dey argue with the guy, after I explained to them they seized his bike and said he must pay, he payed half, I gave the boys small something and funny enough this nigga still refused to pay complete. He came to my lodge to see a friend and I met him and told him he must pay, nigga called another cultist friend and this one was the one who I was dating his junior sis, immediately he saw me him just smile, we shook hand and he said that guy has told him someone was threatening him over money he owed. Instead make this guy keep quiet cause one of them na officer wey be cultist, him start to talk say even with everything him no go pay me. Wham, officer give am hot slap, oya make we climb bike go your lodge you must drop that money. Nigga with tears in his eyes call 2 bike wey we use go him place, him pay me in full, I give officer close to half and officer still collect extra money from the boy hand. Next one was when I went back to school for something after I graduated, na so I hear say cultist dey disturb the boy behind my room, he'd come to pick any clothes he likes and goes, na so my friend junior bro tell me we gats warn the guy claiming cultist from disturbing that boy, we did and it stopped then warned the boy to stop flashing iphone and his gadgets. Another was when I was in 300 level, this guy came and told me I offended his don and I need drop something, I laugh and told the fool to get out, as he went, my neighbors were afraid and begged me to not do such(na JJC them be), I just called the fool give am #200. I knew who sent the guy though, he was too afraid to show his face so he sent one of his recruit who's desperate to impress someone. Either way though knowing cultists doesn't mean you're safe, I've almost been killed twice due to knowing, associating and talking to them, my ex gf neighbor was burnt alive self, RIP to him, he was a church boy who opened his mouth to the wrong person. |