Frame border and CSS

608 views
Skip to first unread message

martillopl

unread,
Nov 13, 2006, 10:52:53 AM11/13/06
to Google Web Toolkit
Has anybody tried to take out the border that appears outside the
frame? I've tried to do so with CSS, but it doesn´t work.

In the HTML page, I have written this line in the HEAD section:
<link rel="stylesheet" href="style.css" type="text/css">

This is the CSS code:
.gwt-Frame {
border: 0;
}

I have tried with "border:0px", "border:none"... even "border: 5px
#FF0000", but the border didn't change at all... so I think it could be
that I haven't linked the CSS page properly, but I don't know how I
should solve this

By the way, I also inserted a "cabecera.setStyleName("gwt-Frame")" line
in the java code but, do I really need it with the default style name?

Any ideas of how to do this?
Thanks

Jason Essington

unread,
Nov 13, 2006, 11:34:09 AM11/13/06
to Google-We...@googlegroups.com
I was just looking at the source to Frame this weekend, and noticed
that it never actually sets the style .gwt-Frame!

So if after creating your frame, you do something like
frame.setStyleName("gwt-Frame"); do you get any different results
with your css?

-jason

martillopl

unread,
Nov 13, 2006, 12:06:25 PM11/13/06
to Google Web Toolkit
Actually, I always get the same result: no changes :(

Jason Essington

unread,
Nov 13, 2006, 1:07:26 PM11/13/06
to Google-We...@googlegroups.com

On Nov 13, 2006, at 10:06 AM, martillopl wrote:

>
> Actually, I always get the same result: no changes :(

oops, at first I missed:

> By the way, I also inserted a "cabecera.setStyleName("gwt-Frame")"
> line
> in the java code but, do I really need it with the default style name?

so, normally, you wouldn't have to do that, but google's frame
implementation forgets to set it.

-jason

Alain Penders

unread,
Nov 13, 2006, 5:09:37 PM11/13/06
to Google-We...@googlegroups.com
Try setting "margin: 0px;" instead.

Alain

Mat Gessel

unread,
Nov 13, 2006, 5:41:29 PM11/13/06
to Google-We...@googlegroups.com

silent yorch

unread,
Nov 14, 2006, 4:27:13 AM11/14/06
to Google-We...@googlegroups.com
so, that's why it sometimes worked in firefox, but never in IE...
problem solved, thank you :D

2006/11/13, Mat Gessel <mat.g...@gmail.com >:

Craig Mitchell

unread,
Jun 14, 2012, 2:05:28 AM6/14/12
to google-we...@googlegroups.com, Google-We...@googlegroups.com
Quick answer:

IFrameElement.as(yourFrame.getElement()).setFrameBorder(0);


On Tuesday, 14 November 2006 20:27:13 UTC+11, silent yorch wrote:
so, that's why it sometimes worked in firefox, but never in IE...
problem solved, thank you :D

2006/11/13, Mat Gessel <>:
Reply all
Reply to author
Forward
0 new messages