Re: border-bottom not showing up

2008-11-07 Thread mwaschkowski
Haha, funny, true. Not sure what John Mudd is referencing though :) On Nov 7, 5:48 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > Hi Mark, > A 'div' is a division of a document originally and it there are no words or > pictures in it, it doesn't really exist. If you understand that, it makes > se

Re: border-bottom not showing up

2008-11-07 Thread Ian Bambury
Hi Mark, A 'div' is a division of a document originally and it there are no words or pictures in it, it doesn't really exist. If you understand that, it makes sense to (effectively) cut out blank pages. But now we are not really using them as they were intended. That is why MS had the so-called 'br

Re: border-bottom not showing up

2008-11-07 Thread mwaschkowski
Thanks Ian, I appreciate the follow up. I have done a lot of flash development lately (ugh) but one thing it does well is render things nicely - if I made an empty box in flash with a bottom border, well, thats what you get on the screen. I have to keep reminding myself of limitations like (the o

Re: border-bottom not showing up

2008-11-07 Thread Ian Bambury
That's the way is is supposed to work - if there is nothing to display, then there is, well, nothing to display. If you use a sensible doctype, you will get (more) consistent results - I.E. will behave better (well, the old ones won't) The old versions of IE used to have an empty linebox in ther

Re: border-bottom not showing up

2008-11-07 Thread mwaschkowski
OK, the solution is basically that you have to add a label (even a completely empty Label!) or else the horizontal panel is not displayed, regardless if you set a height or not. ie. HorizontalPanel separaterPanel = new HorizontalPanel(); separaterPanel.setWidth("90%");

Re: border-bottom not showing up

2008-11-04 Thread mwaschkowski
OK, I'll give it a try. I'm actually trying NOT to use a label, and just make the horizontal panel 90% width and show a bottom border. (ie. its 90% wide and contains nothing, but does show the bottom border) ex. HorizontalPanel p = new HorizontalPanel(); p.setWidth("100%");

Re: border-bottom not showing up

2008-11-04 Thread mwaschkowski
OK, I'll give it a try. I'm actually looking to do something like this: HorizontalPanel p = new HorizontalPanel(); p.add(new Label("Hello")); DOM.setStyleAttribute(p.getElement(), "borderBottom", "1px solid black"); RootPanel.get().add(p); On Nov 4, 8:18 am, "Ian

Re: border-bottom not showing up

2008-11-04 Thread Ian Bambury
No. It is not a bug. It works fine. If you are having a problem with something, don't check it inside another program, use a blank project and try it there. Obviously your app is doing something to it. For example, putting a lable in it and then making it 1px high will mean that only the top px wi

Re: border-bottom not showing up

2008-11-04 Thread mwaschkowski
Hi Ian! I appreciate the suggestion, but I had actually tried that previously as well. I tried it again to make sure: HorizontalPanel separaterPanel = new HorizontalPanel(); separaterPanel.setWidth("90%"); separaterPanel.setHeight("1px"); DOM.setSt

Re: border-bottom not showing up

2008-11-01 Thread Ian Bambury
GWT gets translated into JavaScript. JavaScript uses camelCase Therefore you need borderBottom not border-bottom Ian http://examples.roughian.com 2008/11/1 mwaschkowski <[EMAIL PROTECTED]> > > I'm having a couple of problems with css, any suggestions appreciated. > > I'm trying to create a bo

border-bottom not showing up

2008-11-01 Thread mwaschkowski
I'm having a couple of problems with css, any suggestions appreciated. I'm trying to create a bottom border, similar to an html element. I've tried the following: HorizontalPanel separaterPanel = new HorizontalPanel(); separaterPanel.setWidth("90%");