Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm not very expert in html, but i would like to know where it is possible to understand if an item is close to another element. For instance a div to another div or if a table is adjacent to an image or an another table.
With jQuery you can use closest to find this out. http://api.jquery.com/closest/
Add borders to the elements you want like so:
<p style="border: 1px solid black;">A paragraph</p>
Firefox has a neat trick to check elements.
Go to your page > Right click on it > Inspect element (a layout will appear at the bottom of the page). Top right of this layout in the gray area you have a 3d cube (it's the second item). Click on it and it will give you a 3d view of your page.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to create a blog page full of images that have text appear over them when hovered over. I'm using blogger.com.
I'd like to have it appear like the Tiger (Image Hover Overlay) in this post: http://www.corelangs.com/css/box/hover.html
or the Waterfall (Displaying Text) in this post: http://www.gadgetronicx.com/p/blog-page_9.html
I'm not very good with html but is there a way I don't have to repeat
the same code for every image?
How can I center the image on the page?
How can I get two images on the same line?
I'm not very good with html but is there a way I don't have to repeat the same code for every image?
How can I center the image on the page?
How can I get two images on the same line?
For simple answers for the above questions:
Yes. No need to write for every image. You can use like below. Assume all your images comes under the div with id called "divmainid".
#divmainid img
{
#image styles are goes here.
}
You can use "text-align:center" or "margin:0px auto" for the div area.
Many ways you can do. Simple way is assign "display:inline-block" for the div around your images.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
So, what I want to make is simple, I want an expanding menu. So for example, if you hover or click over/on one item, like "Home", there will appear several other items underneath it.
Basically, what I want is a floating div underneath the menu item. I already tried
menubar {
visibility:hidden
}
menubar:hover, menubar:active {
visibility:visible
}
This doesn't work!
Help? Thanks.
Maybe this is what you're trying to achieve: http://jsfiddle.net/d74Yv/
Basically we're using :hover and + selectors to show the submenu only when either its .handler or the .menu itself is hovered.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Why is it that when creating a simple list with an image as bulletpoints you need at least three elements per entry? Or is there some way to get the entries in a new line without the container div and still have everything align correctly? Perhaps this requires an indepth analysis of position property and floating.
So something like:
[div]
[img] [inner div]
[/div]
Vs:
[img] [inner div]
Your assumption is actually not true.
You can use pseudo elements for the image and
the content doesn't necessarily need to be wrapped in a separate div.
Check out this FIDDLE
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have yet another alignment issue that needs to be solved. I'm no CSS expert, so I need the experts' help. I have tried playing around in Firebug but I couldn't figure it out.
Site where this issue is present: http://bit.ly/13KG6dz
(Using bit.ly because IP addresses are not allowed - don't worry its not a virus)
Note that I CAN change any CSS file being called in this page, but I CANNOT change the HTML code of the page itself, because the HTML code is server generated.
The issue is this:
Shown in red in the picture below:
Anyone know how to fix this ?
You should float it like the rest of fields in the group
#option-231{
float:left;
}
label is basically block element.
use any css display property for desired result.
like
.classNameOfLabel {
display: inline
}
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In this website www.johnpaulus.com I am unable to move the top search bar to the topmost position, just to the right of the social networking icons. It is getting hidden behind the background.
How can I shift it up and make it visible on the right side of the social networking icons?
I wish to use CSS / HTML only.
Your positioning is wrong, a fiddle would be helpful but just did this using firebug, give margin: -40px 0 0; to #searchbar, you can do it better with positioning but as you've not shared any fiddle or code I tried to modify your styles
Screen Shot