• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apply css style to a <s:property/>

 
Americo Perez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a question about styling in Struts 2.
I have this code:



The div is a box with 100px width which contains a text. and the p-tag contain css properties for style the text.
the css for this tags looks like this:



but it seems like the browser doesn't care about the width of the div. You can see how it looks on the attached image.

How can i force the text to make line brake whe it is to long using <s:property/>?

Thanks very much







printscreen.gif
result on browser
[Thumbnail for printscreen.gif]
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK the property tag doesn't emit any markup--it's up to the HTML/CSS/etc. to handle styling.
 
Americo Perez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Ok, so the problem should be the css. I'm gonna take a look to it.

Thanks!

 
Americo Perez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, i solved the problem. It wasn't css nor html but the text in self. There is no way to break a line if there is no some white space in the text. After 2 glas wine i got that revelation

Thanks.

Pd. There is some good site for read about struts 2 tags and work with them as a front-end programmer?


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The S2 documentation wiki has some documentation here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic