Copy link to clipboard
Copied
I created a very simple page in DW with an iframe of a countdown clock. I then went into Google Inspect and added a small piece of CSS to get rid of a little handler for it. Below is the code I added in Inspect and the end result:

So I then grabbed the CSS and put it into the <head> on the DW page. Weirdly, that CSS that works in Inspect won't work in the actual DW page. I added:
svg#x {
display: none;
}
I don't have a web host so I cannot send a URL of the actual page but here is the code from DW:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Timer</title>
<style>
svg#x {
display: none;
}
</style>
</head>
<body>
<iframe width="320" height="135" src="https://free.timeanddate.com/countdown/i69tgzak/n263/cf100/cm0/cu4/ct0/cs0/ca0/co0/cr0/ss0/cac000/cpc000/pct/tcfff/fs200/szw320/szh135/iso2018-07-09T00:00:00" frameborder="0"></iframe>
</body>
</html>
Can someone tell me why this works in Inspect but not when I add the CSS to the page and what I have to do to get it to work?
Thanks.
One of the limitations with using iframes is you have no control over what's coming in from the other site. If you want to style something on their page, you need direct access to it.
Copy link to clipboard
Copied
One of the limitations with using iframes is you have no control over what's coming in from the other site. If you want to style something on their page, you need direct access to it.
Copy link to clipboard
Copied
OK thanks. It's odd because it works in Inspect, but just not on my actual page.
Copy link to clipboard
Copied
It works in Inspect mode because the iframe source is fully loaded.
Copy link to clipboard
Copied
What I'm failing to understand is IF you don't want the svg icon and the header to appear in the countdown iframe why dont you cutomise it at:
Copy link to clipboard
Copied
That's exactly where I got the free version.
Copy link to clipboard
Copied
https://forums.adobe.com/people/Deaf+Mike wrote
That's exactly where I got the free version.
Ok so I'm not quite sure what you are trying to do? It appears from the iframe code that you posted and your screen shot youre attempting to hide the 4 small little arrow icons to the right of the count down figures and the header and just have the countdown visible?
Thats achievable if you customise the code at the link I provided but thn maybe I'm not understanding clearly what it is you are wanting to achieve.
Copy link to clipboard
Copied
You're correct and thanks for pointing it out. I was in a rush to get it set up, saw that icon and didn't think to go back to the site to customize. Thanks.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now