React - load new image - error - part 2

  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Error Image Load
Click For Summary
The discussion focuses on how to properly display an image alongside text in a React component. It begins with a code example that demonstrates importing an image and rendering it within a component. Users inquire about positioning text next to the image, leading to suggestions that using block-level elements like <div> or <h3> will cause the text to appear below the image. Instead, inline elements like <span> are recommended for side-by-side alignment. The conversation also touches on the importance of CSS for layout control, with references to Bootstrap for responsive design. Users express frustration when their attempts to align text vertically next to the image fail, prompting advice to use CSS properties like vertical-align. The discussion concludes with a note on the limitations of HTML tables for layout purposes and the necessity of understanding CSS fundamentals before diving deeper into React development. Additionally, there is a brief exchange about font weight and how to achieve bolder text using appropriate CSS styles and font sources.
  • #31
pbuk said:
Sorry, I hit post before I had added a link, look again.

Ah ok! 900 is the top, right? There is no way to make it bolder, is there? 🤔
 
Technology news on Phys.org
  • #33
Great! Thank you! :smile:
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
7K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
13K