Can someone please clean up this code for me

I don’t believe I have this code set up correctly, I put a lot of time and effort into it. Can someone please look over it and adjust it to how the code should look. I want to keep the same inline css format, I just would like the code cleaned up a bit.

I also don’t believe I’m using the correct tags.

I want to keep the padding the same, adjust everything else.

My code: https://jsfiddle.net/t14my17x/

The
--------
--------
--------
--------
---------
---------
--------
--------

You haven’t shown any content to give us the context of what the HTML is supposed to represent. Based on what you have there I’d replace the entire code with a series of div tags with various classes assigned so that the whole thing can then be styled properly from the external CSS file.Of course depending on the actual content there might be a better tag to use for all of the content than a series of div tags but they would be a more semantic start than what you currently have .

What do you mean, that’s how I want it to look: https://jsfiddle.net/t14my17x/ In those spots I put whatever I want.

I don’t believe I’m using the correct tags.

The only thing that is correct on there I believe is the spacing.

The padding that separates each of the blocks.

Basically, I want to keep the padding the same, adjust everything else.

I was just sent this: https://jsfiddle.net/7wbgk3py/24/ So no I need help cleaning up the tags I’m using.

<td style='color: 
#0059dd;line-height:1;font-size:30;font-weight:bold;padding: 
padding-top: 0px; padding-right: 50px; padding-bottom: 100px; 
padding-left: 50px;'>

Do they all belong under 1 tag like that, or do I separate them into 2 individual tags? And is td style the right tag I’m supposed to me using?

How you want it to look at what resolution on which device?

How you want it to look is what CSS is for - the HTML defines what the content is and has nothing in it at all that identifies how it should look (or sound).

So throw away the meaningless tags you are currently using and learn how to write HTML and CSS properly so that the HTML defines what the content is and the separate CSS defines how it should look for a specific device/resolution.

1 Like

I did it, Complete! and I used CSS: I did it: Complete! and I used CSS

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.