Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi a PSD is created with 1900px PSD. Unfortunately, the client and PSD designer want the page same as PSD but they have no HTML background, so no further feedbacks from them.

2 questions:

1.1) Do I set a max-width (a bootstrap breakpoint, a container)? If so, which bootstrap max breakpoint is the most acceptable on desktop (to not bypass it)?
1.2) Or do I have the page as container-fluid (no max width) but set a left and right padding? In this way the page will look the same on laptop and bigger screens.

2) A general question: How do translate the horizontal spacings between elements from the 1900px PSD? Do I use percentage? Or Media Queries? Or some other way?

Please I don't want to be laid off because I'm stuck at this & will be much thankful.

What I have tried:

About the 1st question, I listed my approaches but not sure which is best.
About 2nd question, no idea on how to approach it.
Posted
Updated 12-Jul-21 4:56am
v2

1 solution

convert psd to html - Google Search[^]

If you've been provided a PSD and it needs converting into HTML, well, you're more than likely going to have to do this manually. How you implement it comes down to user requirements. If the expectation is that the website needs to be responsive then you'll probably need the browser + tablet/mobile versions of the PSD.

You'll have to go through the process of using whatever tools are available to you (ie. Bootstrap) and use the provided or custom media queries to make the HTML content match what is defined in the PSD itself.

As a good starting point, these days a lot of modern CSS design rely on units like em and rem, which are responsive to the parent or root element. You can absolutely use percentages or pixels, it boils down to personal preference. I believe Bootstrap makes use of em and rem. I'd also recommend avoiding adding inline CSS where possible, as this can make your HTML documents unreadable fairly quickly.
 
Share this answer
 
Comments
Member 13410005 15-Jul-21 10:42am    
Thanks for your input much appreciated. I see you tackled into 3rd question. Can you please state a reference or explain more?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900