Label and text field not aligned together? [closed] - html

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
}

Related

Div hover is not working in every browser [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
This is the page I am working with: https://books.fcostry.cz/
What I am trying to do is hide the searchbox (.vc-searchbox) on hover of the Books logo on the left upper side (.vc-headerlogo).
.vc-headerlogo:hover .vc-searchbox{ display:none; } is not working and I really don't know why.
I would like to do it using CSS but I am open to any solution. Thanks for any answer.
.vc-headerlogo:hover .vc-searchbox{display:none;}
Means that .vc-searchbox nested in .vc-headerlogo will not be displayed when overing .vc-headerlogo
In your page, this is not the case: .vc-searchbox is not in .vc-headerlogo, but after (they are sibling). In that case, use the CSS sibling selector +
In other words,
.vc-headerlogo:hover+.vc-searchbox{display:none;}
should work better
Since you are open to options, use jQuery
$(document).ready(function(){
$('.vc-headerlogo').hover(function(){
$('.vc-searchbox').hide();
});
});

how to work with divs in HTML5 [closed]

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 7 years ago.
Improve this question
I just started to work with HTML and I wanted to make a site which has got a colour on the upper side, an another colour on the lower side. I did some research, and I discovered that you got to work with divs. Can you make a nice div in HTML, or do you got to make a div in css (which does fit correct to my site)?
Create your divs in your body with id's
<div id="upper"></div>
<div id="lower"></div>
and then using css you can change some attributes such as color and size, for example in either an external css file or inside of style tags you can do this.
#upper {
background-color: blue;
width: 100px;
height: 100px;
}
#lower{
}
w3schools.com is a great resource for beginner web development, check it out.
Div is a html element. You can set its properties through css but a div doesn;t exsist in css. It is just a way to divide up section in html. Here is some basic information about divs.Divs Info

Blogger images simplify hover over text code [closed]

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.

Page layouts of elements [closed]

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.

Css Position With list of double elements [closed]

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