Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
IhaveAQuestionSir

How do I make the width ajust according with the margin I selected

Question

I'm kind of new with HTML and CSS. I would like to adjust the width of this orange block (the one that is written "ALSKDASLDKAS" ) in an automatic way (So that it gets equal width of the white block above it). I don't know if I'm doing the code wrong, but since im not using the normal flux of the document, im using absolute position. I first selected the right position to be equal in both blocks (although they are still not perfectly aligned on the right side). And then I would like to set the left- margin of the orange block respect to the giant white block in its left and that the width adjusts automatically. The idea is to make both blocks ( the "TRWOERIPWE" and "ALSKDASLKK") aligned and have the same width without much suffering.

image.thumb.png.e54298b734abfeb3217b996cceebea25.png

 

Here is the CSS external code:

 

image.png.b4cdbfea52e6a7d2c8f0f5545ed601fc.png

Here is the actual code:

image.png.6cedd635bb4662769398aa3df82117d6.png

Edited by IhaveAQuestionSir

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Guest
Answer this question...

×   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.

Sign in to follow this  



  • Forum Statistics

    • Total Topics
      148594
    • Total Posts
      644303
×
×
  • Create New...