---
title: "style av scrollbar på en iframe?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/135405-style-av-scrollbar-på-en-iframe"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "tlee"
published: "2005-10-07T11:47:46.000Z"
updated: "2005-10-07T11:54:22.000Z"
replies: 2
views: 278
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/html-css/135405-style-av-scrollbar-på-en-iframe"
---

# style av scrollbar på en iframe?

## #1 — tlee, 2005-10-07T11:47Z

Hej,

Jag försöker ändra utseende på en scrollbar i en IFRAME

Jag har detta i min stylesheet.

\#news {

scrollbar-3dlight-color : #00FF00;
scrollbar-arrow-color : #00FF00;
scrollbar-base-color : #00FF00;
scrollbar-darkshadow-color : #00FF00;
scrollbar-face-color : #00FF00;
scrollbar-highlight-color : #00FF00;
scrollbar-shadow-color : #00FF00;
scrollbar-track-color : #00FF00;

}

i min html sida dit iframen pekar (news.asp).

```
<p align=right class="news">
<div class="news">
```

men det funkar inte, jag har även testat

```
<iframe src="news.asp" scrolling="yes" frameborder="0" align="top" height="100%" class="news"></frame>
```

Allt fungerar om jag lägger ditt stylen i BoDY,HTML taggarna men då blir det på alla scrollbars..

Kan man få en speciel style på en speciell iframe?

Permalänk: https://www.webforum.nu/p/135405

## #2 — @nders, 2005-10-07T11:50Z

Eftersom du har skrivit *\#news* i ditt stylesheet förväntas att iframen har id:t *news*. Ska du använda class, så ska det stå *.news* i stylesheetet.

Permalänk: https://www.webforum.nu/p/1682341

## #3 — silfver, 2005-10-07T11:54Z

Jag kan väl tillägga att det är endast i IE som den här stylen fungerar. Så *jag* tycker bara det är onödigt att stila scrollisten...

Permalänk: https://www.webforum.nu/p/1682343

---

Tråden på webben: https://www.webforum.nu/amne/html-css/135405-style-av-scrollbar-på-en-iframe
