Not yet rated

Problem

CFwindow is great, but comes with its own fixed style which may not suit your site. However you can easily overide this.

Solution

You need to include an overide css style sheet in your page, either inline or linked e.g. <link rel="stylesheet" type="text/css" href="css/cfwindow_overide.css" />

Detailed explanation

The directory structure I am using is

webroot

> webpage.cfm

>> css <!--- cfwindow-overide.css goes here --->

>> images <!---  hd-sprite_flex.gif goes here --->

 cfwindow-overide.css

.x-dlg .x-dlg-hd {
background: url(../images/hd-sprite_flex.gif) repeat-x 0px -82px;
        color:#FFF;
        font:bold 12px "sans serif", tahoma, verdana, helvetica;
        overflow:hidden;
        padding:5px;
        white-space: nowrap;
}
.x-dlg .x-dlg-bgcolor-hd {
        color:#FFF;
        font:bold 12px "sans serif", tahoma, verdana, helvetica;
        overflow:hidden;
        padding-bottom:5px;
        padding-left:3px;
}
.x-dlg .x-dlg-hd-left {
        background: url(../images/hd-sprite_flex.gif) no-repeat 0px
-41px;
        padding-left:3px;
        margin:0px;
}
.x-dlg .x-dlg-hd-right {
        background: url(../images/hd-sprite_flex.gif) no-repeat
right 0px;
        padding-right:3px;
}
.x-dlg .x-dlg-dlg-body{
        background:url();
        background-color:white;
        border:3px solid #a7a7a7;
        border-top:0px none;
        padding:10px;
        position:absolute;
        top:24px;left:0;
        z-index:1;
        overflow:hidden;
}
.x-dlg-dlg-body {
        background: #F6F6F6;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #000000;
}

+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes