The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> My custom cursor is not working outside of content
EleanorFox
post Jun 14 2023, 12:14 PM
Post #1





Group: Members
Posts: 6
Joined: 14-June 23
Member No.: 28,956



Hello. So I have this website https://jsfiddle.net/EleanorFoxQueen/sqLd1wxf/2/ and the cursor when moved outside of the body it will be back to the default cursor. Any idea how to fix this? Thankyou so much

Well nothing I tried works so I'll let you know if I have tried your answer or not
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 14 2023, 01:06 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



How do you mean? It doesn't show for body either. You've specified a custom cursor for certain elements. It will show when those elements are hovered, not for other elements. If you want it for the whole page, use cursor with body.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
EleanorFox
post Jun 14 2023, 01:17 PM
Post #3





Group: Members
Posts: 6
Joined: 14-June 23
Member No.: 28,956



QUOTE(pandy @ Jun 14 2023, 01:06 PM) *

How do you mean? It doesn't show for body either. You've specified a custom cursor for certain elements. It will show when those elements are hovered, not for other elements. If you want it for the whole page, use cursor with body.

Well the cursor is in the body tag and I set the body width to 100% but it doesn't work. Like just hover it away from the content and the default one will be back. And also how are you not seing my custom cursor? It's a public google drive link 🤔
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
EleanorFox
post Jun 14 2023, 01:18 PM
Post #4





Group: Members
Posts: 6
Joined: 14-June 23
Member No.: 28,956



QUOTE(EleanorFox @ Jun 14 2023, 01:17 PM) *

QUOTE(pandy @ Jun 14 2023, 01:06 PM) *

How do you mean? It doesn't show for body either. You've specified a custom cursor for certain elements. It will show when those elements are hovered, not for other elements. If you want it for the whole page, use cursor with body.

Well the cursor is in the body tag and I set the body width to 100% but it doesn't work. Like just hover it away from the content and the default one will be back. And also how are you not seing my custom cursor? It's a public google drive link 🤔

maybe you can use this actually website to see the error then https://eleanor-bit.neocities.org/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
coothead
post Jun 14 2023, 01:35 PM
Post #5


Advanced Member
****

Group: Members
Posts: 206
Joined: 12-January 23
From: chertsey, a small town 25 miles south west of london, england
Member No.: 28,743



Hi there EleanorFox,

the body will only be visible at a width greater than 965px.

On my screen 1366x768, I was only able get the JSfiddle
display to expand to 941px. IPB Image

Try testing your code in an actual browsr, instead. IPB Image


coothead
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
EleanorFox
post Jun 14 2023, 02:11 PM
Post #6





Group: Members
Posts: 6
Joined: 14-June 23
Member No.: 28,956



QUOTE(coothead @ Jun 14 2023, 01:35 PM) *

Hi there EleanorFox,

the body will only be visible at a width greater than 965px.

On my screen 1366x768, I was only able get the JSfiddle
display to expand to 941px. IPB Image

Try testing your code in an actual browsr, instead. IPB Image


coothead

Hello coothhead, here's my website uploaded https://eleanor-bit.neocities.org
Hope this will make you figure out the problem
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
EleanorFox
post Jun 14 2023, 02:17 PM
Post #7





Group: Members
Posts: 6
Joined: 14-June 23
Member No.: 28,956



For people who can't see the problem, here's a video of it
https://www.facebook.com/100087079961096/vi...649462200374270
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 14 2023, 04:39 PM
Post #8


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(EleanorFox @ Jun 14 2023, 08:17 PM) *

QUOTE(pandy @ Jun 14 2023, 01:06 PM) *

How do you mean? It doesn't show for body either. You've specified a custom cursor for certain elements. It will show when those elements are hovered, not for other elements. If you want it for the whole page, use cursor with body.

Well the cursor is in the body tag and I set the body width to 100% but it doesn't work.

No, it's for the DIV #parent, which is only 965px wide. The CSS below is from https://eleanor-bit.neocities.org/

CODE
#parent{
width: 965px;
height: 100%;
white-space: initial;
word-break: break-word;
margin: 0 auto;
padding: 0;
cursor: url("https://drive.google.com/uc?export=download&id=1j1N4eTkIaf_AjdrdtA1UZqt4p39MfFZf"), default;
}


BTW you shouldn't use DIV elements for everything, they lack any semantic meaning.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 14 2023, 04:42 PM
Post #9


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Exactly. And it is in your CSS, not in any tag, BODY or other.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
coothead
post Jun 14 2023, 04:56 PM
Post #10


Advanced Member
****

Group: Members
Posts: 206
Joined: 12-January 23
From: chertsey, a small town 25 miles south west of london, england
Member No.: 28,743




QUOTE(EleanorFox @ Jun 14 2023, 08:17 PM) *

. For people who can't see the problem, here's a video of it
. https://www.facebook.com/100087079961096/vi...649462200374270


In that case you will need another custom cursor for the body.
Here is one that I have just made...

Attached File  my_mouse_pointer_white.zip ( 664bytes ) Number of downloads: 106


Open the zip file and upload the cur file to your images folder.

This would then be your amended CSS...
CODE

body{
  width: 100%;
  height: 100%;
  background: black;
  background-size: 100% 100%;
  background-repeat: repeat;
  background-attachment: fixed;
  margin: 0 auto;
  padding: 0;
  cursor: url("images/my-mouse-pointer-white.cur"), default;
}


I trust that this will help. IPB Image


coothead


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
EleanorFox
post Jun 15 2023, 12:15 AM
Post #11





Group: Members
Posts: 6
Joined: 14-June 23
Member No.: 28,956



QUOTE(Christian J @ Jun 14 2023, 04:39 PM) *

QUOTE(EleanorFox @ Jun 14 2023, 08:17 PM) *

QUOTE(pandy @ Jun 14 2023, 01:06 PM) *

How do you mean? It doesn't show for body either. You've specified a custom cursor for certain elements. It will show when those elements are hovered, not for other elements. If you want it for the whole page, use cursor with body.

Well the cursor is in the body tag and I set the body width to 100% but it doesn't work.

No, it's for the DIV #parent, which is only 965px wide. The CSS below is from https://eleanor-bit.neocities.org/

CODE
#parent{
width: 965px;
height: 100%;
white-space: initial;
word-break: break-word;
margin: 0 auto;
padding: 0;
cursor: url("https://drive.google.com/uc?export=download&id=1j1N4eTkIaf_AjdrdtA1UZqt4p39MfFZf"), default;
}


BTW you shouldn't use DIV elements for everything, they lack any semantic meaning.

Oh okay. Thankyou so much for y'all help. I'm so dumb -_-

This post has been edited by EleanorFox: Jun 15 2023, 12:41 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 15 2023, 11:43 AM
Post #12


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(coothead @ Jun 14 2023, 08:35 PM) *

On my screen 1366x768, I was only able get the JSfiddle
display to expand to 941px. IPB Image

That sounds like pretty severe limitation in JSFiddle, especially in this age of media queries. unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 15 2023, 11:43 AM
Post #13


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(EleanorFox @ Jun 15 2023, 07:15 AM) *

Oh okay. Thankyou so much for y'all help. I'm so dumb -_-

You're welcome. We all are. laugh.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Jason Knight
post Jun 15 2023, 06:13 PM
Post #14


Advanced Member
****

Group: Members
Posts: 103
Joined: 25-December 22
Member No.: 28,719



Warning, I don't mean this to be mean. But I'm not going to sugar coat this either.

Looking at this you've got way bigger problems than custom cursor issues. Such as:

Why are you declaring a fixed width layout?

Why are you slopping style into the markup where it has no business being?

What's with the non-semantic DIV soup?

Why are you telling large swaths of users to go plow themselves by declaring everything in PX?

And I suspect you're also using images for things that shouldn't even be images. Type of thing that happens when a Photoshop jockey thinks they know what design is. Most don't!

I'd have to see the actual images, but on the whole I'd take some time to actually learn HTML, then throw this entire wreck out and start over. This is a laundry list of how NOT to use HTML.

You could start by learning that there are more tags that go into your markup than DIV, That and 100% of the time you see <style> and 95% of the time you see style="" you're looking at utter and total rubbish practices. A middle finger to sane and rational web development.

Also the marquee tag is inaccessible garbage that was stricken from HTML 25 years ago.

This post has been edited by Jason Knight: Jun 15 2023, 06:14 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 16 2023, 04:04 PM
Post #15


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Interesting. So what spec was marquee actually in?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
coothead
post Jun 16 2023, 04:36 PM
Post #16


Advanced Member
****

Group: Members
Posts: 206
Joined: 12-January 23
From: chertsey, a small town 25 miles south west of london, england
Member No.: 28,743




QUOTE(pandy @ Jun 16 2023, 10:04 PM) *

. So what spec was marquee actually in?



I believe that the marquee element was introduced in HTML 3.2
and was present in HTML 4.01, but was then deprecated and is
not included in the HTML5 specification.

I am sure that Jason Knight will correct me if my memory is
mistaken and provide you with more detailed information. IPB Image


coothead

This post has been edited by coothead: Jun 16 2023, 05:32 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 16 2023, 05:41 PM
Post #17


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(Jason Knight @ Jun 16 2023, 01:13 AM) *

Looking at this you've got way bigger problems than custom cursor issues. Such as:

Why are you declaring a fixed width layout?

Why are you slopping style into the markup where it has no business being?

What's with the non-semantic DIV soup?

Why are you telling large swaths of users to go plow themselves by declaring everything in PX?

And I suspect you're also using images for things that shouldn't even be images. Type of thing that happens when a Photoshop jockey thinks they know what design is. Most don't!

You may have more success converting the OP to good design practices if you also elaborate on why the above issues are problematic... wink.gif


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 17 2023, 02:33 AM
Post #18


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



QUOTE(coothead @ Jun 16 2023, 11:36 PM) *

I am sure that Jason Knight will correct me if my memory is
mistaken and provide you with more detailed information. IPB Image


I doubt that. Marquee has been nonstandard all along. It was never in any spec. wink.gif



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 17 2023, 04:28 PM
Post #19


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



It almost made into CSS3 though, as late as 2008 when you'd think W3C would have known better - or maybe they were just joking? https://www.w3.org/TR/2008/CR-css3-marquee-20081205/

"Blink" was more successful: https://www.w3.org/TR/css-text-decor-3/#pro...decoration-line

mellow.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Jason Knight
post Jun 17 2023, 06:18 PM
Post #20


Advanced Member
****

Group: Members
Posts: 103
Joined: 25-December 22
Member No.: 28,719



QUOTE(pandy @ Jun 16 2023, 05:04 PM) *

Interesting. So what spec was marquee actually in?

You caught me! Technically it was never ACTUALLY part of HTML. It was vendor specific, though it was mentioned by name as rejected in one of the HTML 4 drafts alongside EMBED. (or at least the W3C's discussions of such)

After all the whole point of 4 Strict was to simplify the language and reduce the number of tags.

Which is why it's so aggravatingly stupid the WhatWG put EMBED back in. But then I disagree with a lot of what they did with HTML 5.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

2 Pages V  1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 02:09 AM