html

Displaying Div Elements next to each other  #angularjs #reactjs

  • You are only making the wrapping div inline-block you need to apply this style to each of the letters.
  • I’m trying to display the alphabet in a horizontal line and make each letter clickable.
  • How would I now move this whole element to a specific spot on the screen.
  • Also I’m a bit confused on the difference between a div class and a div id .
  • – Id’s are unique and can only be applied to one element, while a class can be shared by more than one element.

I’m looking to make a simple game of hangman, and am stuck at this step.
I’m trying to display the alphabet in a horizontal line and make each letter clickable. Here is what I have right now in my html file.

@ng_real_ninja: Displaying Div Elements next to each other #angularjs #reactjs

Great thank you. That works. How would I now move this whole element to a specific spot on the screen. The usual options don’t seem to work. When I use right, top, bottom, it makes the letters go vertical again.

html

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.