Text selection style going to the edge of a webpage - html

I've been looking around but there doesn't seem to much help on this.
Basically I've adjusted my text selection to a different colour, easy done. However, I was wondering how to code the selection to select to the edge of the page rather than just the text on it's own.
I've attached a screenshot of a working example to show you what I mean.
thanks

I would suggest css style:
display: block;

Related

responsive css circle with two text lines

I am trying to make a responsive circle in CSS.
It has to be activated as a link.
When you hover over the circle, the background color needs to change.
In some circles there need to be two text lines.
I found this example script. But unfortunately it is not a link yet:
http://codeitdown.com/css-circles/
As well the following example:
http://codepen.io/anon/pen/cqoFv. Which is not a link yet as well.
So, only the circle needs to be a link.
Your help is appreciated. Thank you very much.
Some like this?
http://codepen.io/anon/pen/zAaGe
Just easy css.
:hover,visited.

CSS3 Transition different depending on search or text input?

First off, I went and looked at the responses generated for answers when asking this question. Didn't find anything similar. I'm just dealing with a weird quirk in my code pen. A result I was not expecting.
The easiest way to explain is to simply link to my code pen.
Code Pen: CSS3 Expandable Search Form
I have the same css code applied to two different types of inputs. One is a search input and the other a text input. In order to get similar results from each i have to modify the amount that the transition opens up to in width on the text input and set it to 95% instead of 100%.
My goal was to have each using the same transition code with similar transition effect. But it's not working. I would be very appreciative to anyone who takes a look at it and may be able to help me. Thanks. BTW I am a newbie to both stack overflow and code pen. I'm sorry if I do anything wrong. lol I did try and look for an answer.
I tried posting code here, but I must be doing something wrong. Everything is in code pen though.
Now have a look at your Code Pen. I have assigned class to every one.
http://codepen.io/anon/pen/AlcHr
I hope you wanted to achieve this.
Your search bar is using a different box model
box-sizing: border-box;
Apply that to the rest of your fields and they will behave the same.
The search field has a style applied by the browser of box-sizing: border-box;
Apply this to your other fields and they should behave the same.
Updated Pen

creating invisible text fields in html?

I'm trying to put html code to a design mockup my boss provided, and some of the aesthetics - the shape of the search bar, for example, are a little bit bizarre and complex. As an easy fix, I thought I would simply put a text field over an image of the search bar, but I can't get it to work.
Can anyone suggest a way to layer a text field over an image, leaving it invisible but still functional?
As far as the invisibility goes, put this CSS on your input:
input {
background: transparent;
border: none;
}
Check out this jsFiddle that shows this in action. As far as positioning the input goes, you should be able to handle that normally.

Text aligns oddly.

In the following image, I've outlined 3 things in red, the first is the the title of a box with the words 'Final Fantasy IV', the second box is 'Sonic Chronicles: The Dark Brotherhood, and the third is the css styling of the title as displayed by Chrome.
My issue is that in the first box, labeled 'Final Fantasy IV', you can see it looks ok, and there's no overlapping, in the second box however, you can see some font overlapping. What's some CSS magic I can do to fix this?
Thank you.
What's some CSS magic I can do to fix this?
CSS Magic:
position: relative;
CSS position documentation:
http://www.w3.org/TR/CSS2/visuren.html#propdef-position
I would imagine that the image above the text, i.e. resultIMG is taking time to d/l, and that it is not downloaded when the browser is making it's calculations. You sometimes see this sort of thing when using JS to set equal height columns, where one of htem contains a large image. Worth looking into. Try setting a height on resultIMG, if you can

Text on top of lines

I am trying to get text to show above some horizontal lines. But try as I might the text always show underneath.
Here is the code
http://jsfiddle.net/mrchin/uTsxZ/
Can anyone see what I need to do? I've always done layout in flash and am still learning css. Any help appreciated.
Positioning the text relatively seems to work:
#txt_projects
{
position: relative;
}
You need to use background image to display lines underneath the text.
I updated your code, please review.
http://jsfiddle.net/uTsxZ/4/
if you need a tripple line, you need to modify your background image to do that.