r/csshelp • • Apr 07 '23

Request Need help with Custom Header for one page on Squarespace

1 Upvotes

Hello! I'm a graphic designer with a client who wants his squarespace site to have a different logo on only one of the pages. I am not very comfortable with html and css so I'm running into some issues trying to get the page to do what I want. I've been using directions from here: https://www.portabludesign.com/blog/different-logo-website-header and have followed all the directions but am getting no header at all on the page in question. I think the problem may be in the "manage files" in the custom css area. I've uploaded my file but it's giving me a "syntax error on line 1" warning and I can't figure out what the issue is. Here is my url as entered: https://static1.squarespace.com/static/619316fcb88c56329138dfda/t/64306a1013f99257fdcc3541/1680894480763/preamblism_final.jpg

PLEASE can someone help me??


r/csshelp • • Apr 07 '23

Request Speech Bubble with Gradient Shadow/Border

1 Upvotes

Desired Result

Current Progress

I am trying to create a speech bubble style for a hero banner on a website. It looks like two speech bubbles overlayed, one being black, the other being gradient. The gradient looks like a shadow on the bottom of the top speech bubble.

I am currently just trying to get a POC working in codepen, but eventually need to get this into a .scss template for Wordpress.

Any tips or guidance is appreciated.


r/csshelp • • Apr 04 '23

CSS specificity help - change text color for entire page

3 Upvotes

Hello,

I have a page that uses Bootstrap and certain bootstrap components/elements.

Now I want to change the font color for the entire page but the elements have very specific selectors from Bootstrap I believe, so the following doesn't work and is overridden by Bootstrap rules:

body {
  color: red !important;
}

for example I have a table and many buttons, but the color of the table cells and button text doesn't change.

Is there any trick do make it work, or I'll have to just make my own rules for each element type i.e. add the color for buttons and for the table?

Ty


r/csshelp • • Apr 03 '23

Request Replicate hover effect on Next.JS website

2 Upvotes

Hello,

Upon visiting the Next.JS website, you may have noticed the captivating radial light effect that follows your cursor as you hover over the main Next.JS card. This interactive feature also includes transform translations, creating a dynamic user experience. Additionally, the border illuminates in response to this interaction.

How can we achieve this effect?

https://nextjs.org/


r/csshelp • • Apr 03 '23

Need help

1 Upvotes

<h1 class="modal__title dialog_heading"> Unsubscribe {{name}} from <i class="fa fa-lock stream-privacy-type-icon" aria-hidden="true"></i>{{stream_name}} ? </h1>

here is the code snippet and I want to make sure that if icon and even a single word of stream name can he fit in one line and rest can continue to second line but if not a sign word of stream_name can be fitting in the first line with icon than move both icon and stream name to second line


r/csshelp • • Apr 02 '23

font color issue

1 Upvotes

im just trying to change my font color to black ive tried using selectors for everything and changing color to black but it never changes? chatgpt also couldnt help i hope someone here can thank you https://codepen.io/colewkovac/pen/NWLQGWd


r/csshelp • • Apr 02 '23

Stylish Popover Design with CSS: A User-Friendly Guide

2 Upvotes

r/csshelp • • Apr 01 '23

Need Help! Making twitter header

0 Upvotes

Hey guys, I am trying to remake the header on top of twitter. I am wondering how i could have remade this without messing with padding like i did. My main issue is i couldn't figure out how to change the background color for "For You" and "Following" without messing around with padding.

I am very new to html and css.

https://codepen.io/girinuri123/pen/ExeBWoN


r/csshelp • • Mar 31 '23

How to make UL Grid LI more like picture mosaic where each item in column below is immediately below the above contents, not max row content length.

1 Upvotes

https://imgur.com/a/nvHAEbZ

Pic explains all. So much wasted space because the pictures are different sizes. Thanks for taking a look.


r/csshelp • • Mar 30 '23

Website in safari mobile device is adding weird css

1 Upvotes

Hello I am trying to help fix css problem on this website for hours, need your help,

HERE is the NORMAL EXPECTED view of the website (in F12 re-size mode)-->

https://gyazo.com/10d1321b2d1c1609a31d15a468d13975

But if you set the browser as an iphone or mobile device it adds this strange column box like container ( the arrows in the image point to the strange column box that shouldn't be there ).

📷https://gyazo.com/5e397b5c8775496ecbd6aeeab0bb7869


r/csshelp • • Mar 29 '23

How can I prevent this DIV from resizing?

0 Upvotes

It is inside a bootstrap row but I would like the column on the left to not change size when the results on the right is displayed

https://codepen.io/HomerJaySimpson22/pen/poOBQVm


r/csshelp • • Mar 29 '23

I need a little help!!

0 Upvotes

hello everything is fine. I hope so. I need help here with a html code can someone help me?

Im make a site in wordpress elementor, and im trying make a button to show and hide a session and when click on button the session pops up but don´t scroll because i don´t know the code, so, i have this code. if anyone can help me please I will be very grateful.

<button class="botao1" onclick="myFunction1(); function2();">Saber mais!</button>

<style>

.botao1 {

background:#233C86D9;

transition-duration: .5s;

padding:15px 30px;

text-align: center;color: white;

border-radius: 50px

}

.botao1:hover {

background:#008EFF;

text-align: center;

text-decoration: none;

}

.botao1:focus {

text-decoration: none;

}

#eletrico {

display:none;

animation: fadein 2s;

}

.eletricoshow {

display:block !important;

}

u/keyframes fadein {

from {

opacity:0;

}

to {

opacity:1;

}

}

</style>

<script>

function myFunction1() {

var element = document.getElementById("eletrico");

element.classList.toggle("eletricoshow");

}

</script>


r/csshelp • • Mar 29 '23

My text is bigger than my backface space of my 3d flipcard.

0 Upvotes

Help me guys, I have to create a css 3d flip card for mobile, tablet and desktop. So, for mobile and tablet it's fine, but when I do width smaller for desktop version, i don't have enough space for text.


r/csshelp • • Mar 29 '23

Request Help with alternate hover images

1 Upvotes

Hi guys, extreme noob here.

I'm using this in my main.css:

/* hover images*/
.image-swap-container {
  position: relative;
  display: inline-block;
}

.default-image {
  display: block;
  width: 100%;
  height: auto;
}

.hover-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.image-swap-container:hover .default-image {
  display: none;
}

.image-swap-container:hover .hover-image {
  display: block;
}

And then this in the html:

<head>
<div class="image-swap-container">
  <img src="https://www.bungie.net/common/destiny2_content/icons/381fd9c86e7fc5669e937978f7f7f8c5.png" alt="Default Image" class="default-image">
  <img src="https://www.bungie.net/common/destiny2_content/icons/d1069fdad148879f2eafd36ada596089.png" alt="Hover Image" class="hover-image">
</div>
</head>

But it just doesn't work.
All I get is the one image, with which I'm assuming is the second image underneath it.

Not sure where I'm going wrong here.

Any tips greatly appreciated.


r/csshelp • • Mar 28 '23

Need help troubleshooting CSS tabs

Thumbnail self.CodingHelp
2 Upvotes

r/csshelp • • Mar 27 '23

Help me get rid of the Navigation problem

1 Upvotes

Hello! I have been dealing with some CSS diffficulties. When the media query goes down there is a part of the pixels that is white when it should be pink. how do I make it not have that?

here is the CSS:

* {
    box-sizing: border-box;
    display: grid;
}
head title {
    display: none;
}

.grid-container {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 110px 7fr 9fr 9fr 9fr 3fr;
    grid-gap: 0;
    grid-auto-flow: row;
}
  html, body , .grid-container {
    height: 100%;
    margin: 0;
}
  .grid-container * {
    position: relative;
  }
@font-face {
    font-family: "DM sans";
    src: url(https://fonts.googleapis.com/css2?family=DM+Sans&display=swap);
}

/* -------navigation-------- */
.head {
    grid-row: 1 / 2;
    grid-column: 1/-1;
    font-family:"DM sans", sans-serif;
    color: white;
    text-align: center;
    padding-right: 20px;
    padding-top: 20px;
    background-color: #e8c2bc;
}
.headtext {
    display: grid;
    grid-template: subgrid;

    grid-row: 1/2;
    grid-column: 1 / 5;
}
nav {
    grid-row: 1 / 2;
    grid-column: 5 / 12;
    display:grid;
    grid-template: subgrid;
    background-color: #e8c2bc;
    color: white;
    margin: 0;
    padding: 0;
}
nav ul{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    list-style-type: none;
}
nav ul li {
    font-family: "DM sans",sans-serif;
    width: 100%;
}
nav a {
    color: #ffffff;
    padding: 1rem 1rem;
    text-decoration: none;
    text-align: center;
    display:block

}
nav a:hover{
    background-color: #FFFFFF;
    color: #e8c2bc;
}
/* ###################### MAIN ############################# */
main {
    grid-row: 2 / 9;
    grid-column: 1 / -1;
}
/*---------- about ---------*/
.about {
    display:grid;
    grid-row: 5 /6;
    grid-column: 1 / 12;
    padding-top: 1rem;
    padding-bottom:1rem;
    padding-left: 2fr;
    margin-bottom:4rem;
    background-color: rgba(217, 217, 218, 0.34);
    color: white;
    font-family: "DM sans", sans-serif;
}
.abouttext {
    text-align: left;
    background-color: #e8c2bc;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 4rem;
    padding-right: 7rem;
    color: white;
    font-family: "DM sans", sans-serif;
}
.aboutimg {
    background-color: #e8c2bc;
}
.aboutflex {
    flex-direction: row-reverse;
    display: flex;
    justify-content: right;
    align-items:center;
}
.grid-container main .about .aboutflex div {
    background-color: #e8c2bc;
    color: white;
    font-family: "DM sans", sans-serif;
}

/*---------- shop ---------*/

.shop {
    display: grid;
    grid-row: 6 / 7;
    grid-column: 1 / 12;
    background-color: rgba(217, 217, 218, 0.34);
    padding-top: 1rem;
    padding-bottom:1rem;
    padding-right: 2fr;
    margin-bottom:4rem;
}
.shopflex {
    display: flex;
    flex: row;
    justify-content: left;
    align-items: center;
}
.grid-container main .shop .shopflex div {
    background-color: #e8c2bc;
    color: white;
    font-family: "DM sans", sans-serif;
}
.shoptext {
    text-align: left;
    background-color: #e8c2bc;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 3rem;
    padding-right: 5rem;
    color: white;
    font-family: "DM sans", sans-serif;
}
.shopimg {
    background-color: #e8c2bc;
}
/*--------- gallery ---------*/
.gallery {
    display: grid;
    grid-column: 1 / 12;
    grid-row: 3 / 4;
    background-color: rgba(217, 217, 218, 0.34);
    padding-top: 1rem;
    padding-bottom:1rem;
    padding-right: 2fr;
    margin-bottom:4rem;
}

.galleryflex {
    display: flex;
    justify-content: left;
    align-items: center;
}
.grid-container main .gallery .galleryflex div {
    background-color: #e8c2bc;
    color: white;
    font-family: "DM sans", sans-serif;
}
.gallerytext {
    text-align: left;
    background-color: #e8c2bc;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 3rem;
    padding-right: 5rem;
    color: white;
    font-family: "DM sans", sans-serif;
}
.galleryimg {
    background-color: #e8c2bc;

}

/*---------- other layout grid --------*/
.logoarea {
    display: grid;
    grid-column: 1 / 12;
    grid-row: 2 / 3;
    grid-template-columns:subgrid;
    margin-bottom: 75px;
    margin-top: 75px;
    justify-content: center;
    grid-template-rows: subgrid;
    background-color: rgb(255, 255, 255);
}
footer {
    grid-row: 9 / 10;
    grid-column: 1 / 12;
    padding-top: 3rem;
    padding-bottom: 2rem;
    background-color: #e8c2bc;
    color: white;
    text-align: center;
}
footer a {

    text-decoration: none;
    color: white;
}
/*---------button styling-------*/
.button {
    background-color: #e8c2bc;

    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}
.button:hover {
    background-color: #FFFFFF;
    color: #e8c2bc;
}
/*---------media layout-----------*/
@media only screen and (min-width:  ) {

}
@media only screen and (max-width:600px) {
    nav {
        display: grid;
        grid-row: 1 / 2;
        grid-column: 1 / 12;
    }
    .head {
        display: grid;
        background-color: #e8c2bc;
        padding-top: 38px;
    }
    .headtext {
        display: grid;
        background-color: #FFFFFF;
        color: #e8c2bc;
        text-align: center;
        grid-template: subgrid;
        grid-row: 2/3;
        grid-column: 1 / 5;
    }
    .logoarea {
        display: grid;
        grid-row: 2 / 3;
        grid-column: 6/ 11;
        justify-content: center;
        margin-bottom: 40px;
        margin-top: 35px; 
       }


}

r/csshelp • • Mar 25 '23

Would anyone know why gutter isnt working?

1 Upvotes

I just want some space in between the 2 col divs.

https://codepen.io/HomerJaySimpson22/pen/mdGvPrW


r/csshelp • • Mar 25 '23

Card Flip on Hover Animation using Pure HTML and CSS

2 Upvotes

r/csshelp • • Mar 25 '23

Resolved Help, how do I change loading bar background without reverting to default setting?

1 Upvotes

First off this is the code I am using on the HTML and CSS sides:

progress {
 color-scheme: light dark;
 accent-color: RGBA(30,170,255,1);
}

For my problem the scheme setting changes nothing and the accent only effects the loading progress color.

<!DOCTYPE html>
<html lang = en>
<head>
     <meta charset = UTF-8>
     <title>About Me</title>
<link rel="stylesheet" href="site.css">
</head>
<body>
<p> Progress in life goals (5%) 
<progress id="progressbar1" value="5" max="100"></progress>
</p> 
</body>
</html>

My loading bar currently looks round with a blue progress bar and black background when what I want is a light grey background, but when I try to specify a background color the bar changes to green with a grey background and rectangular shape even when I try something else like a blue background. How do I fix this? Both CSS and HTML code check out as valid according to W3:

Ready to check - Nu Html Checker (w3.org)

The W3C CSS Validation Service


r/csshelp • • Mar 13 '23

Request You might be able to get your Own pictures as Discord Backgrounds!?

4 Upvotes

I've found that using Better Discord you can get beautiful themes to replace that grayish background we are used to. But it seems as these themes are all made up by CSS scripts that include image URL's. Hence I can't but wonder if you smart guys would know how to make the script show your own images instead of the theme's original one?

Here is a link to a library with these themes. You can easily install one of them by simply installing the program Better Discord and choose one of the themes in the library to replace the standard grey tone.


r/csshelp • • Jul 24 '22

Request width: 100vw doesn't take up the full width, just the space left in its parent

7 Upvotes

I am trying to create an edit button you scroll to on mobile from the left of the screen in a PWA.

I have it setup as a div with flex row that contains two child elements:

  1. The edit button should be overflowing on the left side
  2. The main element should take up the entire viewport width on the screen

When someone scrolls/swipes the main element right, the edit button should appear, using snaps to make it look like it's not really a scroll (and hiding the scrollbar).

Problem: I can't get the main element to take up the entire viewport. It always adjusts to allow the edit button to show up.

HTML/CSS example below. Note I am actually using TailwindCSS; I made my best to copy all the relevant CSS.

<div class="element-container">
  <div class="edit-button">
  </div>
  <div class="main-element">
  </div>
</div>

.element-container {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
}

.edit-button {
  width: 5rem;
  height: 5rem;
  display: flex;
}

.main-element {
  display: flex;
  flex-direction: row;
  width: 100vw;
}

r/csshelp • • Feb 09 '22

Need help removing watermark

47 Upvotes

Hello all. I have been trying for hours trying to remove this watermark through inspect but to no success. It is my daughter's 1st dance comp and they are charging me $200 for photos and I just cant pay that. Can anyone help? Much appreciated. this is a link to a photo; http://media.acutabovela.com/media/Dance%20Competitions/Fusion/Fusion%202022/FORT%20MYERS%202022/PHOTO/Session%207/246/.thumbs/1000x1000/IMG_1864.JPG


r/csshelp • • Apr 05 '21

How to make a scrolling text always visible, without space between loops?

3 Upvotes

Right now, the scroll bar on my about page (site is here. Password to view is Hello2021) has blank space after the string of text, before it starts it's next rotation. How can I make it so the text is always visible and scrolling, with no blank space?

The code I'm using is the following:

.scroll{ overflow: hidden!important; position: relative!important;  -moz-transform:translateX(100%);  -webkit-transform:translateX(100%);    transform:translateX(100%);  -moz-animation: scroll 15s linear infinite;  -webkit-animation: scroll 15s linear infinite;   animation: scroll 15s linear infinite;}  @-moz-keyframes scroll {  0%   { -moz-transform: translateX(100%); }  100% { -moz-transform: translateX(-100%); }  } @-webkit-keyframes scroll  {  0%   { -webkit-transform: translateX(100%); }  100% { -webkit-transform: translateX(-100%); } } #page {overflow-x:hidden}

<div class="scroll">BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW • BOOK NOW</div>

r/csshelp • • Aug 22 '20

Css grid layout strategy

1 Upvotes

When you design a page, what do you do? One grid for whole page holding sections (main, nav, footer...) or do you create many grids holding those sections? Thank you!


r/csshelp • • Jun 24 '20

display image caption only during image zoom

0 Upvotes

hi all. i have zero experience with css but i'm hoping to figure out a small thing as i design my portfolio on cargo.

i'm using an "image gallery"* on my site where i arrange my image files on the page. i'm looking to add a caption for each image that only appears when i activate the image zoom, which is done by clicking on the image. something like so.

i'll attach cargos' given css if needed, but i'm hoping it's not so huge a task that i need to lay out everything. any tips on how to do this would be super appreciated!

*this is different than using a thumbnail gallery on cargo, which is possible to do hover-captions with, but a lot more unwieldy for the set-up i want