Jump to content
Mxlt

Problems with a border...help!

Recommended Posts

Hi!

I need some help with an exercise I am doing. In my exercise, the borders on the right side is taking too much space, I would like it to take only as much space as it needs, with only around 2em of padding, but for some reason, the left side and the upper side seems to have a lot of space....I would appreciate a lot if you could help me.

Attached you can find the file and here is a link with the exercise I am doing (the first one).

Exercises

Thank you!

Ejercicio1prueba.htm

Share this post


Link to post
Share on other sites

It is set to 'col-2' class which is 16% of the total width available from the parent div which is same width of body. The text-align: is forcing it to the right as you would expect, the gap at top is the default margin along top and bottom of header element h2. To make it width of text remove 'col-2' class,  or use a smaller width class 'col-1'. if you wish reduce top space adjust padding or adjust margin of h2 element.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...