Home >Web Front-end >HTML Tutorial >(Urgent) Modify one div and the other one will change accordingly! _html/css_WEB-ITnose
This is mainly done by Google
Now the problem is, before the modification, the height of the left and right sides were both 980. Now I have modified the height of the left side to 920, but the right side has not been modified, but why does the right side follow? Change together?
Well, a weak criticism. To display it on a line, your .con_left should at least float left and right float, and your margin-top: -980; it’s a bit cheating; just float left and float and it’s done. Try
But, I want this Yes, isn’t the content width 1200? con_left is 950, centered. If you float the left as you did, then how can you center con_left?
Hmm, a weak criticism. To display it on a line, your .con_left should at least float left and right float, and your margin-top: -980; it’s a bit cheating; just float left and float and it’s done. Try
But, I want this Yes, isn’t the content width 1200? con_left is 950, centered. If you float the left side like you did, how do you center the con_left?
Quote from the 1st floor’s reply:
Well, a weak criticism . To display it on a line, your .con_left should at least float left and right float, and your margin-top: -980; it’s a bit cheating; just float left and float and it’s done. Try
Since you The width of all divs has been determined, then you can just set a margin-left
Didn’t the right side change? Your margin-top: -980 is too cheating
You can use a block in the middle margin:0 auto
Uh-huh. . hehe,. , Done!