Trying to edit existing external stylesheet....

235 views
Skip to first unread message

Daniel Foster

unread,
Mar 17, 2011, 3:41:49 PM3/17/11
to bluegriffon
My basic questions is: how do I edit a *.css file using BG?

I'm trying to use BlueGriffon (BG) to edit an exising website, which
was built with Dreamweaver. I have an external stylesheet linked to my
main html pages. I can open the stylesheet.css in BG (File > Open >
Choose file > Files of type: All files). I can edit it. But I cannot
save it. I don't feel like I'm doing something right.

Daniel Glazman

unread,
Mar 29, 2011, 10:06:39 AM3/29/11
to blueg...@googlegroups.com
Le 29/03/11 15:45, Brian a �crit :
> I don't think right now you can edit an external stylesheet within BG.
> I think from what I've read you'll be able to with the new CSS editor.
> I'm hopeful anyway.

You can.
Using Insert > Stylesheets, create a link to an empty external
stylesheet into your document. Make sure that in the list of <style>
and <link> defining stylesheets, your external stylesheet is the
last one. Of course, BlueGriffon is only able to edit stylesheets that
are on your hard disk or (mounted remote disks with associated
privileges). In that case, the CSS Properties panel outputs the
generated CSS rules into the file.

The forthcoming CSS Pro Editor will let you edit stylesheets in a much
more powerful way. Stay tuned...

</Daniel>

Brian

unread,
Mar 29, 2011, 9:45:53 AM3/29/11
to bluegriffon
I don't think right now you can edit an external stylesheet within BG.
I think from what I've read you'll be able to with the new CSS editor.
I'm hopeful anyway.

Dominik Lenné

unread,
Mar 28, 2011, 12:37:58 PM3/28/11
to bluegriffon
Same problem.

Brian Hinto

unread,
Mar 29, 2011, 11:25:39 AM3/29/11
to blueg...@googlegroups.com
I look forward to more info on that! And I'll give that a try. For some reason I couldn't get it to work for me when I tried that. Probably an error on my part. Very awesome implementation if it functions as expected. I've always hated having to copy and paste the style from the html doc to an external stylesheet.

What about multiple stylesheets? Can BG check the stylesheets and place the CSS changes into the stylesheet with that selector in it?

On Tue, Mar 29, 2011 at 10:06 AM, Daniel Glazman <daniel....@gmail.com> wrote:
Le 29/03/11 15:45, Brian a écrit :

Daniel Glazman

unread,
Mar 29, 2011, 11:29:22 AM3/29/11
to blueg...@googlegroups.com
Le 29/03/11 17:25, Brian Hinto a �crit :

> I look forward to more info on that! And I'll give that a try. For some
> reason I couldn't get it to work for me when I tried that. Probably an
> error on my part. Very awesome implementation if it functions as
> expected. I've always hated having to copy and paste the style from the
> html doc to an external stylesheet.
>
> What about multiple stylesheets? Can BG check the stylesheets and place
> the CSS changes into the stylesheet with that selector in it?

No it can't for a very simple reason. Suppose you want to edit
class "foo" but there is another stylesheet, in late order of
parsing, that applies to class "bar" and the element you're
editing has both classes... Since the rules are of same specificity,
what you need is a .foo happening AFTER the .bar or you'll end
up with an ugly !important.

Trust me, that's not easy to allow styling whatever the stylesheets
attached and the context. I spent years on that, litterally. The
behaviour of the CSS Properties Panel is then a compromise, but a
compromise that should work whatever the web page you edit :-)

</Daniel>

Brian Hinto

unread,
Mar 29, 2011, 11:34:22 AM3/29/11
to blueg...@googlegroups.com
What about an option to select the stylesheet to edit? I'm thinking along the lines of specific media stylesheets? (ie. print, etc.) Like a drop down within the main BG interface choosing which external stylesheet is the active one. And then the style changes would take place in that specific stylesheet.

On Tue, Mar 29, 2011 at 11:29 AM, Daniel Glazman <daniel....@gmail.com> wrote:
Le 29/03/11 17:25, Brian Hinto a écrit :

Daniel Glazman

unread,
Mar 29, 2011, 11:36:48 AM3/29/11
to blueg...@googlegroups.com
Le 29/03/11 17:34, Brian Hinto a �crit :

> What about an option to select the stylesheet to edit? I'm thinking
> along the lines of specific media stylesheets? (ie. print, etc.) Like a
> drop down within the main BG interface choosing which external
> stylesheet is the active one. And then the style changes would take
> place in that specific stylesheet.

That's an interesting idea I must say. But it's not something for
beginners who don't master CSS yet. What if it's an add-on to the
CSS Properties Panel ?

</Daniel>

Brian Hinto

unread,
Mar 29, 2011, 11:43:11 AM3/29/11
to blueg...@googlegroups.com
That would work. :) Can't wait to see the pro CSS editor! I have high expectations after what you've done so far ;)

On Tue, Mar 29, 2011 at 11:36 AM, Daniel Glazman <daniel....@gmail.com> wrote:
Le 29/03/11 17:34, Brian Hinto a écrit :
Reply all
Reply to author
Forward
0 new messages