Html boxes moving when browser resized [closed] - css

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
when i resize the browser, three elements in the middle (It's for everybody, It's one big community, its fun) position dont stay static. the third box goes under the other two boxes.
Here is the link,http://www.archimedus.com/archimedus/
I have been battling with this css issue for a day now.
It could be very simple but still i haven't been able to figure out what mistake i have made.
can someone please advise.

Start by checking your html marckup. You must use bottom_text classes instead of id's . You should not have duplicated id's in the document.
Then you must take a decision about what do you want to happen width your divs
Specific to your question
If the target is to avoid the relocation effect, wrap then in a container div and let them float inside of it. Then set a minimum width to your wraper div. Decide how will behave the overflow of it.
Your floting divs can use relative margins in order to obtain some flexible layout, etc...

The simplest way to fix this would be to give the boxes a max width of 33%.
#content_mass_bottom #bottom_text {
float: left;
width: 425px;
max-width: 33%;
}

You can move your bottom_text divs into the tbox1/2/3 divs.
<div id="tbox1">
<img src="/archimedus/images/everybody.png" class="everybody">
<div id="bottom_text">
<p class="bottom_text">Many hands make light work. Imagine what we can achieve with our collective abilities With Archimedus there is an unlimited amount of knowledge available, waiting to be tapped by you. You’ll never be bored again. Best of all… it’s free!</p>
</div>
</div>

Related

How to put image div container over another div, yet keep it clickable? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I want to put my image over accordion div container and keep it clickable, so my image override it only visually. How I can do that?
My page that I need to edit is there.
That's what I want to make my page look like:
THANKS IN ADVANCE!
Actually, this is possible in most browsers with CSS (Chrome, Firefox, Safari, IOS, Android. A full list available HERE)
img {
pointer-events: none;
}
DEMO
Not supported in IE10 or below.
There are also number of Javascript solutions including THIS ONE using Jquery that are usable in IE.
You won't be able to sit the image over the top and have the links clickable. The only solution I can think of is to slice the image into two parts, placing one above the accordion and one to the left. Even doing that, though, will mean the blue +s will not be clickable, as the image will have to sit over them. And getting the two parts of the sliced image to match wouldn't be fun, either. (I'm sure some old browser or two would mess it up for you.)
Honestly, my suggestion is to rethink this, as it's not practical for the web. I would suggest placing the whole image as a background on the accordion and living with the girl's hand pointing to the links without actually hovering over them.

Image followed by an inline div with two block divs inside [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I've read quite a few links about the problem but i can't grasp why the following fiddle is the way it is. I maybe missed some point, so my apologies in advance. It hasn't really been my day.
Here you have this line break which i claim shouldn't be there, because both the external divs are styled "display: inline". Why are in the inner divs (set to style "display: block") affecting the line break?!
The way i see it, the external divs should be on one line and the line break should occur inside the second div. Also, the first div shouldn't be necessary, since img is inline by default.
Any explanation?
Put <div style="display: inline"> for the 1st div and it will work - http://jsfiddle.net/v7eUN/3/
It was <div style="inline"> - just a typo after a hard day, I guess?
You have mistyped the style for the main div, you need to use style="display: inline" not style="inline".
See here: http://jsfiddle.net/v7eUN/4/

CSS extra space issue in IE9 [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
My site is cross-browser compatible but in IE9 it is showing the extra space between navigation and content part.
You can see the issue here.
How can I fix it?
You are getting lots of whitespace because you are using position:relative and then using clear="all" tags after. This is pushing all of your content down below that. Try using absolute positioning (position:absolute;) instead and make the parent container position:relative;
I think you've got a lot more to worry about here though. Your coding is a big mess and it makes it extremely difficult to pinpoint the error(although I think that is it). I recommend taking all your CSS and putting it in a separate style.css stylesheet and consider doing the same for javascript.
Also you have 161 errors in your script as well as 194 warnings. (see for yourself at http://validator.w3.org/). These errors are going to cause all sorts of problems for you and make it extremely hard to get everything to layout as you like (also google will punish your search engine results). I know there are a lot of errors but it won't be so bad to go through and fix them all as most are duplicates. Also you will learn all sorts of new things :) Hope that helps!
It's the div with id="navBreadCrumb" that causes the space, as it has a top margin of 190px. The margin collapses with the outer element and pushes the div with id="new_main" down. Then you are using relative positioning to make the content display 90px furter up.
If you remove the margin and the relative positioning, you get rid of 100px of blank space.

Why are the top two containers different sizes? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
The top two containers, containing the picture of beds are of unequal heights but I have set the width and height to be the same.
http://justbedroomdesigns.com/
Sorry to ask but I have no clue why they aren't the same height?
Edit: confusion in my questions seems apparent. I mean the top two that are side by side, not the two that are in the first column.
Thanks
You have a typo in your CSS file
#title {
float: left;
idth: 410px;
}
should be
#title {
float: left;
width: 410px;
}
First things first, you are using IDs on your page more than once. DON'T DO THAT. ID's are meant to be used once per page. Switch them to classes.
Second, ASSIGN A WIDTH / HEIGHT TO YOUR IMAGES WITH PIXELS. Otherwise you will have problems like this. I can see you are using Wordpress, and you can do so in the WYSIWYG on the back end. Percentages are going to be a bad idea if you aren't sure on the exact widths / heights of where the images are being placed.
Next, check how it looks across browsers, Firefox looks good, Chrome not so much. IE7 doesn't like much at all.
Ok. So besides that, a quick fix might be.
.post-block img {
width:338px;
height:248px}
Hope this helps.
They are the same height. The box on the left is partially obscured by the box below it.

CSS "display: inline-block" Refusing to break lines [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I'm working on a project and I'm attempting to style a specific link type in the same way as Adi Palaz uses here to define external links. I have my code set up the same as his but for some reason display: inline-block is overflowing the containing <li> element (which has a defined width) so that the list elements stack 2 side-by-side.
Can someone tell me how to go about forcing the link "The Mountain and the Mole Hill" at bottom of this demo, development page (http://dreamstarstudios.net/sandbox/philosimply/sliding_drawer.html) to break lines? I thought inline-block was expressly for the purpose of have text that is displayed as a block level element yet still breaks lines. The even stranger thing is that changing it to display: inline doesn't force a line break but rather just causes the text to overflow the defined width :(
EDIT My apologies for not explaining further. If you look at this link (http://www.adipalaz.com/linksbg.html) you will see how this developer used white-space: nowrap (which is needed) to achieve the desired effect I'm going for. What I really need to know is why it is working for him but not me.
Just remove white-space:nowrap;
http://www.w3schools.com/cssref/pr_text_white-space.asp
in your style sheet 'line 206' you are setting the width, it is doing exactly what you are telling it to do, you will need to make it wider or add clear: both; to the li.
You've set white-space:nowrap on this link. That's why it won't break.

Resources