N-has-a-site

n-has-a-site.neocities.org

179,000 views
221 followers
14,817 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 1 month ago

Not sure this is even possible ngl

2 likes
avedo-storyhub's avatar avedo-storyhub 1 month 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 1 month 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 1 month ago

@pirahxcx Yes I control the parent page inside the iframe

pirahxcx's avatar pirahxcx 1 month ago

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

1 like
pirahxcx's avatar pirahxcx 1 month 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 1 month 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 1 month ago

@pirahxcx thank you! ill try that

Website Stats

Last updated 12 hours ago
CreatedDec 3, 2023
Site Traffic Stats

Tags

blog photography design personal diary