I need help

html-css

#1

whats wrong with the background part


#2

if im doing a scroll marquee is their a need for the cent tag of nah


#3

marquee html5


#4

what do you mean. I dont get it
sorry for the late reply


#5

thank you for replying


#6

The link above is a SERP. A quick perusal of it will show that <marguee></marguee> is obsolete in HTML5. A better approach is available with CSS, although we should consider that the element’s detractors were strong supporters of the accessibility and standards community.

The first strike against the element is that is has nothing to do with content or structure, only presentation. You’ll notice that HTML5 has deprecated or obsoleted most presentational elements of earlier HTML iterations. The second objection (or perhaps more important) was due to movement on the screen which can be disturbing for some visitors. Just as with animated GIFs, scrolling text may trigger seizures in sensitive users.

The document type that supports (validates) with a MARQUEE-node is HTML 4.01…

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">

Not the route to go, though. Look for a CSS approach.


#7

thx and why wont the background not work


#8

Try,

background-size: cover;

What happens, now?


#9


thats what it looks like now


#10

It is possible that the site you are pulling the image from does not allow hot-linking. They may not be a CDN. Download the image and then upload it to content delivery network such as img.ur, etc.


#11

ok ill try it then tell you if it works


#12

The other option if you are working on your local computer then don’t bother putting it online. Just put in an images folder right off where your index.html page is.

+ project/
    + images/
        - bg-img.png
    - index.html