N-has-a-site

n-has-a-site.neocities.org

274,990 views
280 followers
16,264 updates
0 tips
how do i apply the css of the parent page into an iframe??? i have no clue how to do this 😭
3 likes
aurpheus's avatar aurpheus 9 months ago

Not sure this is even possible ngl

2 likes
avedo-storyhub's avatar avedo-storyhub 9 months ago

this definealty can be done, I think the iframe just have to be missing the element or set to inherit for the parent frame

1 like
pirahxcx's avatar pirahxcx 9 months ago

do you control the page inside the iframe? if not, then it's not possible on neocities

1 like
n-has-a-site's avatar n-has-a-site 9 months ago

@pirahxcx Yes I control the parent page inside the iframe

pirahxcx's avatar pirahxcx 9 months ago

and can't you just add the style there, or link rel="stylesheet" href=""

1 like
pirahxcx's avatar pirahxcx 9 months ago

^ the easy option, but I checked here you can make the iframed page generate a class you can control through the other page using js" if (window.self !== window.top){document.documentElement.classList.add("whatevernameyouwant");} then in the main page css you add .whatevernameyouwant selectorsyouwanttomodify {properties: values;}

1 like
n-has-a-site's avatar n-has-a-site 9 months ago

@pirahxcx nope, trying to do different themes, I want one place to write my microblogs and then the microblogs is stylised with different themes. It would make it easier to update my microblog, as I only need to write in on page instead of 3 pages for the three themes.

n-has-a-site's avatar n-has-a-site 9 months ago

@pirahxcx thank you! ill try that

Website Stats

Last updated 2 weeks ago
CreatedDec 3, 2023

Tags

blog photography design personal diary