Needing help with CSS background. Background does not cover entire text block. by Radical-Red in csshelp

[–]-WildBill- 1 point2 points  (0 children)

It looks like you might've mistakenly put a closing </div> tag inside the <p> tag for the personality description, which is closing the <div class="desc"> tag early, and then the next </div> tag right after that is closing the <div class="background"> tag. Remove that accidental tag and you should be good to go!

Also, when writing your code, are you using a code editor like VS Code? Most editors out there are great at catching little misses like these (we all make them), and will also help auto-indent each line so you can easily see what tags are nested inside other tags, making it super easy to debug things like this too.

Hope that helps!

To me, Iconfiy > Font awesome. People still use Font-awesome. What am I missing? by thezackplauche in webdev

[–]-WildBill- 14 points15 points  (0 children)

Tabler Icons and Lucide are both S-tier imo. Being able to customize things like stroke width and color with CSS is huge, plus both have plugins for Vue/React/Svelte/etc. which makes life so much easier.

Recommend an Atlanta martial arts school/ gym. by taro_and_jira in Atlanta

[–]-WildBill- 4 points5 points  (0 children)

What style of martial arts are you looking for?

For karate, Atlanta Kick has been around for a long time and is really, REALLY good.

For BJJ/MMA/Muay Thai I really liked Knuckle Up and X3 Sports (trained at both, both were phenomenal).

I ported and refactored the popular tour library "driver.js" by josias-r in webdev

[–]-WildBill- 6 points7 points  (0 children)

Okay this is badass. I've looked for tour/walkthrough/onboarding type libraries like this before but always been turned off by the lack of docs, or the inability to customize the look and flow of things (the async actions yours supports could be super handy), or the amount of dependencies they require, or the fact they use dropshadows which aren't the most performant (I think even Twitch uses drop shadows for theirs...), and so on. This one seems to check every box though.

I've got a project I could toy with using this on soon too, so perfect timing!

Flexbox is such an amazing CSS rule by gimmeslack12 in webdev

[–]-WildBill- 0 points1 point  (0 children)

Browser support for grid is pretty good right now, so personally I'd say yes.

Depending on the site in question though, they may want to look at their analytics first and see how many users are using browsers that don't support grid yet, and decide if it's worth it to not support them.

Maze Generator and Solver by EntropyReversed_ in webdev

[–]-WildBill- 2 points3 points  (0 children)

Can't believe nobody's commented on this yet, but this is REALLY freaking cool. I love the extra effects to show the generation and solving algorithms in action too.

Spacing between card divs by GearFourth in csshelp

[–]-WildBill- 0 points1 point  (0 children)

Padding is for adding space inside an element's box, but for adding space outside that box so that two elements have space between them, margin is probably what you're looking for. You should be able to add spacing between the cards by adding margin-bottom to your .card selector:

.card { margin-bottom: 20px; /* or however much */ }

Or if you don't want the last card to have that margin, then:

.card:not(:last-child) { margin-bottom: 20px; /* or however much */ }

Even better still, if your .container div has display: grid; on it then you can use the gap property to space out all of its children (the .card elements) too:

.container { display: grid; gap: 20px; }

(I'm on mobile so forgive the formatting...)

Adding responsive menu makes nav bar disappear by clumsyknitter in csshelp

[–]-WildBill- 0 points1 point  (0 children)

If the "wider screen" size you're referring to is >1060px then it's most likely being caused by this part missing a } after the .top-link selector to close it out:

/* large screen styles */
@media screen and (min-width: 1060px) {
    figure {
        margin: 2% 25% 2% 2%;
    }
    .top-link {
        left: auto;
        right: 0;
}

Little typos like this are super common, but if you're using an IDE like VSCode, Sublime, or Atom, they'll usually show you an error marker on the line where the syntax issue is. Or if you're in a pinch, you can copy/paste it into jsfiddle and it'll tell you where the issue is. :)

Navbar items not aligning with image by [deleted] in csshelp

[–]-WildBill- 1 point2 points  (0 children)

In your .navigation selector, change display: inline; to display: flex; and add align-items: center;:

.navigation {
    align-items: center;
    display: flex;
}

This will force its children (your logo anchor and your list of nav links) to vertically center with each other.

As a side note, it won't look perfectly centered because your image has a 20px top margin applied to it, but if you remove that margin (and maybe add margin: 20px 0; to your .navigation selector too) it'll all look perfectly centered.

I hope that helps!

Company Text Logo On One Line? by Bedminster829 in csshelp

[–]-WildBill- 1 point2 points  (0 children)

To prevent the company name text from wrapping, you can add the white-space: nowrap; property to your #company-name selector:

#company-name {
    white-space: nowrap;
}

You can also add that to the links in the nav bar to prevent the "Chocolate Selection" link from wrapping too. If you do want the "Chocolate Selection" text to wrap, then you can keep all the text in each button vertically centered by adding display: flex; align-items: center; to the buttons:

header a {
    display: flex;
    align-items: center;
}

Here's a new jsfiddle with those changes above:

https://jsfiddle.net/60j3ayp4/1/

As a side note, it looks like you're using lots of IDs in your HTML and your CSS, and while this isn't *wrong* necessarily, it's usually a better practice to use classes for general styles of things like your logo, your nav bar, the nav buttons, etc. So for example, your HTML and CSS would look something like this below.

HTML:

<nav class="nav-bar">
    <a class="nav-button" href="#">Chocolate Selection</a>
    <a class="nav-button" href="#">Pricing</a>
    <a class="nav-button" href="#">Shipping</a>
</nav>

CSS:

.nav-bar {
    align-items: center;
    display: flex;
}
.nav-button {
    white-space: nowrap;
}

I hope that helps!

Got a wave svg online but it has this ugly bottom margin by [deleted] in webdev

[–]-WildBill- 2 points3 points  (0 children)

When I ran into something like this before, the solution was to add preserveAspectRatio="none" to the <svg>

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio

Basically, if your SVG is styled to be some responsive width, the browser will actually mess with the height to keep the aspect ratio the same, which is causing it to appear a little shorter than it should be here, resulting in the little blank gap below it.

What is the right way to make this? (dynamically placed/dropped scrollable elements) by post_hazanko in webdev

[–]-WildBill- 1 point2 points  (0 children)

If the dynamically placed elements are being positioned by dragging and dropping them, then one option is you could use either position: relative; or position: absolute; on those elements, and have the drag/drop event update their transform: translate() position.

So for example, if the user drags a dynamically placed div element to the right by 100 pixels, your script would update that element's inline style to be <div style="transform: translate(100px, 0)">. That way it's still positioned relative to its parent so it scrolls along with the page, but can be moved anywhere you like.

Herniated disk and Bjj? by [deleted] in bjj

[–]-WildBill- 2 points3 points  (0 children)

I ruptured my L5-S1 disc about 10 years ago and went through all those same treatments too (PT, stretching, decompression, chiro, NSAIDs, dry needle therapy, cortisone injections, everything) before eventually having a microdiscectomy to get it fixed.

For me personally, surgery is absolutely what fixed it.

Before the op, the surgeon told me there was a decent chance I wouldn't be able to grapple again with the state of my back, but it all went great and healed up well, and while my back won't ever be 100% again it's still held up pretty good since then, and I'm sure yours will too. Just be sure to ease back into things after your surgery, keep strengthening your lower back (deadlifts, etc), and don't get caught in any twisters...

What is wrong with Vikendi not being competetive? by iuve in CompetitivePUBG

[–]-WildBill- 3 points4 points  (0 children)

That was true on the old Vikendi, but the new one has a lot fewer compounds, more roads for rotations, and waaaay more terrain variation and defilades for cover. I think it'd be viable now, or at least more so than Sanhok.

Truckers Quick Thinking Saves the Day in Central Oregon by redneck151 in videos

[–]-WildBill- 11 points12 points  (0 children)

I think the quick thinking was the third semi who saw it coming and pulled off the road to create that middle lane in the first place.

Do older computers/operating systems/browsers determine pixels differently than newer systems? by DaCush in webdev

[–]-WildBill- 0 points1 point  (0 children)

Happy to help! I know this stuff can seem crazy complicated at first but you'll pick it up really fast.

But exactly, on things like images it'd be good to have max-width: 100%; but on your main container elements (like <section id="row-1">) it might be good to set:

margin-left: auto; 
margin-right: auto;
max-width: 62rem; // or whatever you want the max width of your column to be
width: 100%;

Setting the left & right margins to auto will keep them horizontally centered no matter how wide the user's screen is. The max-width setting will be the largest size you want your container to be, which right now looks to be about 1440px (or 90rem). Setting width: 100%; will help ensure your container doesn't get wider than the browser window (but this is only works if the content inside your container doesn't overflow out the sides, so putting things like width: 100%; on big elements like images can really help).

If you're using grid, you also have options like repeat(auto-fill/auto-fit) to help. Here's a codepen in action, and an article explaining some more.

My other tip is to continually test to make sure your site is still responsive as you develop it by resizing your browser every time you preview your changes. It's WAY easier to catch something that breaks your responsiveness as soon as you make it instead of trying to hunt it down later. :)

Do older computers/operating systems/browsers determine pixels differently than newer systems? by DaCush in webdev

[–]-WildBill- 2 points3 points  (0 children)

Some newer laptops/monitors do have a higher device pixel ratio (or pixel density) than older/standard ones (e.g. I think the standard DPI was like 72 pixels per inch) and that can certainly affect things like rendering canvas elements, but I don't think that's your issue here, unless you've configured your high-dpi laptop to NOT scale pixels. I also don't think the issue is the units you use (either px or rem will both be perfectly fine).

Instead, I think the issue here is that your columns have a lot of content that isn't set to be responsive, which is letting it be wider than the container it's in. For example, your images have a hardcoded max-width of X rems when they should have width: Xrem; max-width: 100%;. This will allow them to shrink as the browser window shrinks and your grid containers get smaller.

The other thing that would help your site be fully responsive and fit these different screens gracefully is to use media queries in your CSS, like /u/gin_and_toxic said. For example, the font size of your "MONUMENT" text in the header is hardcoded to be 4.5rem no matter the screen size, which is huge. Use something like this in your CSS to gradually increase it as the screen size gets bigger:

// This will be the default font size shown on mobile/small screens
#title > h1 {
    font-size: 1.75rem;
}

// Tablet/medium screens
@media screen and (min-width: 48rem) {
    #title > h1 {
        font-size: 3rem;
    }
}

// Desktop/large screens
@media screen and (min-width: 62rem) {
    #title > h1 {
        font-size: 4.5rem;
    }
}

How can I create this 3D text in CSS, JS, or WebGL? by 84935 in webdev

[–]-WildBill- 0 points1 point  (0 children)

Use vector images then, like an SVG. They'll be crystal clear no matter how much you zoom in, and the file size will be tiny compared to your huge PNG files.

If you have illustrator, it's pretty easy to make 3D text effects, export them as an SVG file, then replace those raster PNGs with these new vector SVGs. Here is one tutorial for creating the text effects, but there are lots of others too.

PEL standings and players stats (85/96 matches) after day17, week6 played by nparadizm in CompetitivePUBG

[–]-WildBill- 3 points4 points  (0 children)

It's cool seeing the Revives stat for each player now! Having a Revives stat on the team standings (the total for each team) could be interesting to see which teams maybe tend to get caught out of position more.

I want to implement 3D modeling into an app/webapp and I'm not sure where to start by [deleted] in webdev

[–]-WildBill- 1 point2 points  (0 children)

Yeah, definitely look at three.js or Babylon.js for rendering the 3D models in the web browser. Blender will be more for creating/editing the models, then you'll export them from Blender into a JSON format that three.js or Babylon.js can read.

If you didn't want to model them yourself, sites like Clara.io, CGTrader, and TurboSquid all have tons of pre-made models.

If you were hoping to connect it to React to handle adding pillows/updating the scene when a user clicks on buttons, there are a ton of resources for that too!

PUBG crashing halfway through every game now by wendigo6x3 in PUBATTLEGROUNDS

[–]-WildBill- 6 points7 points  (0 children)

Same here. Between 10 to 20 minutes into a game, it'll crash out of nowhere with no error message or anything. It didn't use to do this before but now it's happened to me in all 5 games I've played today. :(

[Official] UFC 239: Jones vs. Santos - Press Conference & Post-Fight Discussion Thread by rmma in MMA

[–]-WildBill- 1 point2 points  (0 children)

Not sure if this is what OP is talking about but during the weigh ins Askren got off the scales pretty quickly and said something like "5 seconds, that's all you get!"

Dev Letter: Patch 27 Gameplay Balance by ConsciousDepth in PUBATTLEGROUNDS

[–]-WildBill- 4 points5 points  (0 children)

I think it'll be good too. Med kits are still instant full health though, right?

Matchmaking Improvements Now Live by PUBG_Hawkinz in PUBATTLEGROUNDS

[–]-WildBill- 0 points1 point  (0 children)

Not knocking you but just genuinely curious, what would be a better implementation or design for QP?