Home › Forums › CSS › Making text box using css and html › Reply To: Making text box using css and html
October 22, 2014 at 5:15 am
#186803
Paulie_D
Member
The structure in the td’s is needed to have the elements look as if they are elements
Not sure what that means but ideally you should have three (divs & spans / paragrapfs would work) and not using break tags for spacing…that’s what margins & padding are for.
<td class="transition">
<p class"number">25</p>
<p class="shortcode">Mn</p>
<p class="element-name">Manganese</p>
</td>
Then you just style each class as required.
positions it depending on the area of the screen that the element is in so that it wont get cut off.
That’s certainly possible but detecting the edge of the screen is something you need javascript for.
How much text are you anticipating?