Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

My CSS Works in Inspect but Not in DW?

Enthusiast ,
Jun 17, 2018 Jun 17, 2018

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:

01.jpg

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&#58;//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&#58;00&#58;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.

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 17, 2018 Jun 17, 2018

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.

Translate
Community Expert ,
Jun 17, 2018 Jun 17, 2018

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.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 17, 2018 Jun 17, 2018

OK thanks.  It's odd because it works in Inspect, but just not on my actual page.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 17, 2018 Jun 17, 2018

It works in Inspect mode because the iframe source is fully loaded.  

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 18, 2018 Jun 18, 2018

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:

Free Countdown Timer for Your Website

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 18, 2018 Jun 18, 2018

That's exactly where I got the free version.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 18, 2018 Jun 18, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 18, 2018 Jun 18, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines