#Background linear gradient is not fully occupied

55 messages ยท Page 1 of 1 (latest)

dry pollen
#

I tried to use background-image: linear-gradient(to right, #672280, #A626D3)

#

still aint working

dry pollen
#

@sand pelican

sand pelican
#

k here

#

what you are trying to do here

dry pollen
#

that image

sand pelican
#

it seems you have placed the image outside of this background image container

#

talking about logo

#

can i see the code

dry pollen
# sand pelican can i see the code

import React from "react";

export default function Header() {
return (
<header className="header">
<img className="h_image" src = "../images/trollface.png" alt = "troll" />
<h2 className="h_title">Meme Generator</h2>
<h4 className="h_project"> React Course - Project 3</h4>
</header>
)
}

#

sending code like this is not good is there any way to send code properly so that it can be readable

sand pelican
#

what are the styles for them?

dry pollen
#

.header {
display: flex;
height: 65px;
align-items: center;
color: white;
background: linear-gradient(90deg, #672280 1.18%, #A626D3 100%);
}

sand pelican
#
<header className='header'>
  <div>
  <img src='your_image_path' />
  <h1>Meme Generator<h1>
 </div>

  <p>React Course-Project 3</p>

</header>

.header{
display:flex;
justify-content: space-between;
}
#

this should work

sand pelican
dry pollen
dry pollen
sand pelican
#

did your whole header container got the background color now

dry pollen
#

its coming like this when i download from figma

sand pelican
#

try re downloading it

dry pollen
#

i did 3 times

sand pelican
dry pollen
#

sometimes its coming black and sometimes white

sand pelican
#

weird

#

@Sai can you set it as normal background color like red and see if its being applied to whole container

dry pollen
sand pelican
#

from all sides, so there should be breating room for content

dry pollen
sand pelican
dry pollen
sand pelican
#

๐Ÿ–ผ

#

i just copied it as text , you can add it as text

dry pollen
sand pelican
#

you can add background color to it

#

to the button

#

it will come out well

dry pollen
sand pelican
#

perfect

dry pollen
#

@sand pelican is there anything like that if i click on the link it should open project

sand pelican
#

you can add a anchor tag and set the href to project url

dry pollen
#

i mean if i want to open project without vs code is there anything like that like domain or something

#

netlify

sand pelican
#

oh yea you need to host your site on Netlify

dry pollen
#

ohh k alr

sand pelican
#

see a video on hosting your react app via Netlify

#

on youtube, its easy to host react apps