How can I justify the text in <a-text> in aframe? - aframe

I want to justify the text rendered in the tag of a-frame. Is there any way I can do it? align attribute allows only center, left, and right.

a-text is based on three-bmfont-text, which does not support justification. You might want to try aframe-troika-text instead.

Related

How to get a fixed width button with an input field taking the rest of the available space fluidly

Is it possible in CSS only to accomplish to get a input field and button vertically aligned like in my pen:
http://codepen.io/rpkoller/pen/BhKbp/
and then manage that the button aligned to the right has a fixed width and margin to the left to the input field and that the input field is filling the rest of the space fluidly.
Getting the button to the right might work with a float but with that solution the button isn't vertical aligned in the middle anymore. :( and getting the input field fill the remaining space i haven't managed at all. :/
Best regards Ralf
You can use specifity of floatting element and layout of block elements .
<button> first in the flow, floatting before a block wrapping the input. wrapper at overflow:hidden and <input/> at width:100%;.
see test : http://codepen.io/anon/pen/Hdiyq

How to keep text sticky to image when using css3 transform

For showing transform i used jsfiddle, How to keep the sticky text to the image when transform, right now the text is constant,How to transform the text also along with the image
http://jsfiddle.net/U9g3c/2/
See this fiddle, here I inserted the rotation and position change (the javascript-lines with div.namehover.
http://jsfiddle.net/5r6mx/
It would be more elegant if you would put the image and its title in a <div> and do all the rotation and reposition stuff on this <div>.
You are only rotating the images. You have to set a rotate-class to the text wrapper as well.
place your text and image in a shared div container and rotate that.

Text <div> tags, and css

I have two questions:
1) I have a div with an image that I use for my footer, but I when I resize the page the footer text gets all "mushed" together. Is there any way I can get the text to stay in a certain position and resize with the page?
2) I use a div for the body of the page, but when I try to add text and align it in position it moves the entire div. How can I get the div (which is just background color) to stay in place while I move the text around?
Here is the site and code on jsfiddle: http://jsfiddle.net/HzwV9/embedded/result/
Thanks.
Had a fiddle with your fiddle, here's a result that may help you: http://jsfiddle.net/HzwV9/4/
Some things I noticed:
A few of your HTML tags aren't closed (that's asking for trouble).
No need to use <h1> for your lower links; it's a block element, not an inline element, and also you'll need <a> to make a link later anyway
You can simplify the big list of tags at the beginning by just using * - all!
Hope this helps. Also, footers are notoriously difficult, since CSS doesn't do vertical sizing very well...there's a few solutions out there but they all have something wrong, up to you what you want to be wrong :)

CSS under float right

I hope I will explain this well.
I have a div that has a style="float: right;" and in this div I have a table with some editor fields.
But now I would like to have two text editor boxes (in .NET MVC3 #Html.TextAreaFor) that would sit under these edit fields.
But what happens is that the text editor boxes appear somewhere in the middle of the page and not under the right floated editor fields.
How do I make the text editors appear under the right floated editor fields?
Thank you
Try to apply overflow:hidden to the parent of the div with float right, assuming that the blocks that have to be below it are not in the same parent. But it sure would help to see your markup.
I have solved this by putting the right aligned div in the right cell of a two cell, one row table that I gave 100% width.
That forces the next view with text editor fields fit under this table because it is 100% in width.
It is not very elegant but it does the trick for now.
Thank you

is it possible to do text wrapping ALL AROUND an element?

Is it possible to style text wrapping ALL AROUND an element as it appears in the image attached? (Either CSS, or JQuery)
.
Thank you
As far as I'm aware, there's only an ugly hack where you cut your image into "slices" and have them sitting inside your paragraph text at the right spots. Needless to say, that's not very nice nor very dynamic.
Floating only allows you to move elements to the left or right.

Resources