 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 3rd, 2003, 05:39 AM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
CSS Stylesheets
Hi there
Has anyone come across the following problem:
I've got a textfield on a page:
<input name="name" type="text" class="formbox" id="name" value="">
Also attached on this page css stylesheet, where formbox is:
.formbox {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px; color: #FFFFFF;
height: 18px; background-color: #000066;
padding-top: 0px; padding-bottom: 0px;
padding-right: 2px; padding-left: 2px; width: 250px
}
Why is it that, when viewing in Windows XP, the background colour of the textfield is pale yellow, and does show up as navy blue (as specified)? If I make this textfield into a textarea it works, but I get the arrows on the right hand side of the box, which I don't want.
Any ideas on how to solve this problem?
Cheers in advance
Lucy Robinson
|
|

November 3rd, 2003, 05:08 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
What version of Dreamweaver are you using? The MX version is not too good in rendering CSS at design-time (the text box has a white background on my XP system in MX).
Are you using the text box within a template or library item? These items have a yellow background so that may be what you're seeing.
Dreamweaver MX 2004 does show the text box in a dark color, almost black. In both cases, my Internet Explorer (6) shows the text box in a very dark color as well.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

November 4th, 2003, 07:24 AM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Cheers Imar
I'm using Dreamweaver MX and have the textfield on an asp page, rather than in a library or template.
I've since found out that the 'yellow background' I'm seeing is nothing to do with XP but with the Google toolbar that's installed on my machine. There's a checkbox in the 'Options...' tab, under 'More' that says 'Automatically highlight fields that AutoFill can fill' and if I turn this off, my textfield looks like I want it to.
Unfortunately I don't think there's much I can do about this, as some people may have it switched on and others may not. If anyone knows how to solve this problem, or maybe detect whether a user has the Google toolbar installed on their machine, I would be interested to know the code!!
Lucy Robinson
|
|

November 4th, 2003, 07:59 AM
|
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
One way of ensuring the yellow does not show would be to tell people how to turn off google features such as Autofill (Say it COULD be a security risk, and they are more likely to do it. Autofill is dangerous but that's another topic board altogether) Also I found in Dreamweaver 3 I needed to turn off invisible elements (View -> Visual Aids -> invisible Elements) to stop invisible elements showing up on previews in Netscape (Not IE 6, they never appeared in IE) I don't surf using Netscape (If Google toolbar for Netscape existed I would!) so don't know if template based websites show "invisible elements" when online. As far as I am aware this is not a problem in MX (Not tried 2004 as of yet).
Examples of invisible elements might be Javascript (Dreamweaver shows a little shield to show this) also Template based editable regions. In older versions of Dreamweaver non editable was shown in the same pale yellow as the Autofill on google.
---
David Thorne, Student
UK
|
|

November 4th, 2003, 04:14 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
In MX and MX 2004 invisible elements don't show up in the browser (I guess that's why they are called invisible elements ;) )
Invisible elements are just design-time visual cues so you know where a piece of JavaScript, ASP, CF or any other script based element appears. Funny that they showed up in earlier versions (don't have one here, so I can't test it).
Template regions, library items etc still do show up as yellow (although you can change the color) in MX and in 2004. 2004 has some odd bugs where the contents of the library item disappear and just show a blank yellow area.
Anyway, it appears that you had a run-time problem and not a design-time problem, right? So the problem is solved now?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|
 |