When I resize, there are gaps between the text? - media-queries

When I resize to a smaller screen, the text breaks and there are some gaps between the text. https://github.com/Mr404Found/gatsby-starter-profile-site/issues/1

Welcome to Stack Overflow!
You have to
text-align: left;
Instead of
text-align: justify;

Related

Jquery Datatables sort column border color

I have a need to style my (striped) data table's sorted column so that it has an outline around the column (ie: the 1st row's border top and last row's border bottom are colored as well as the border sides for every column).
When I use the .sorting{} class and give it a background color it works, when I try to simply give it a border color without the 1st row and last row requirements I cant get that to work.
Works
.sorting_1{background:red}
Doesn't work
.sorting_1{border: 2px solid red}
Any ideas?
The border that was already established by the table-bordered class was interfering with what I wanted to do, so I ended up doing the following which kept my overall borders but put the borders around the sorted column and border top and border bottom around the first and last row of the column.
.sorting_1{
border-left: 2px solid cornflowerblue !important;
border-right: 2px solid cornflowerblue !important;
}
.table-bordered > tbody > tr:first-child > td[class*="sorting_1"]{
border-top: 2px solid cornflowerblue !important;
}
.table-bordered >tbody > tr:last-child > td[class*="sorting_1"]{
border-bottom: 2px solid cornflowerblue !important;
}

Safari 6 Round Corners Glitch

Hi! As you can see on the image, there's a strange behaviour in safari 6 with round corners
{ border-radius: 5px 5px 5px 5px; }
when hovering over the elements there is a thin line that's building up when hovering more and more times... The first and second link wasn't hovered over, and you can see different lines caused by hovering mouse over the elements a few times...
Is that just a bug in safari?
I haven't seen this exact behavior before, but I've seen similar. I assume you are on a Retina MBP? and certainly on Mountain Lion. Safari is occasionally having issues with border-radius and virtual resolution (which is how the retina display works).
Try quitting safari, changing your resolution, and opening it again. If it looks better at first, then you'll just have to wait for a fix from Apple.
In the meantime, you might have some luck making sure all border styles make it hidden:
border-color: transparent;
border-style: none;
border-width: 0;
Hope that helps!
-Mike
This post may answer your question CSS rounded corners bug in Safari?.
Try to use:
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
instead of:
border-radius: 5px 5px 5px 5px;

Safari 6 border lingering after hover with border radius set

I have a typical link on a page. On hover, the link receives a border color and border-radius. In Safari 6, I am noticing that when the mouse leaves the link there is a very faint border color left behind. If you hover again over the link, the border gets darker and darker in some cases, even though the border-color is not set. If border-radius is not set, the issue does not occur.
I cannot repeat the issue in Firefox or Chrome (for Mac). The simplest fix I found was to specify a solid or transparent border color for the base anchor style. Could this just be a Safari rendering bug?
Link for the rendering issue: http://jsfiddle.net/zafer/msnak/4/
Try making the border-radius value equal to the padding on the anchor element and see if that doesn't help. I had the same problem in Safari 6 as well and that seemed to have fixed it.
So your CSS code would look something like this:
a {
display: inline-block;
padding: 15px;
border-radius: 15px;
}
a:hover {
background: #004184;
}
just ran into same issue and found that using even values (2,4,6,..) as radius fixed it for me, like so:
a{
color: white;
padding-right: 9px;
padding-left: 9px;
}
a:hover{
background-color: green;
border-radius: 4px;
}
regardless of different padding values.
The background-clip solution did fix the problem for me, check the details on https://stackoverflow.com/a/3447130/1200097 it is possible that your properties need to be reordered.

How do I stop Safari underlining text in linked images?

I have images linked to text in my site. The text appears like a link and when hovered over an image appears in a fixed position on the screen with text underneath it to describe it. I want the text under the image to appear plain and with no underline. It does in IE9, Chrome and Firefox, but not in Safari. The html for the text link looks like this:-
<p><a class="thumbnail" href="#thumb">Basil Thomas Stirratt<span><img src="images/basil stirrat.jpg" width="200" height="299" alt="" /><br />Basil Thomas Stirratt<br />taken June 1940</span></a>, who was 18 at the time, had been......</p>
The css looks like this:-
.thumbnail{
background-color:#FFFF00;
position:static;
z-index: 0}
.thumbnail:hover{
background-color:#CCCCCC;
z-index: 50}
.thumbnail span{ /*CSS for enlarged image*/
position:fixed;
background-color:#99CCFF;
padding:5px;
left: -1000px;
border: 10px ridge #E0E0E0;
visibility: hidden;
text-decoration:none;
text-indent:0px;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
color:#000000;
text-align:center;
-moz-box-shadow: 3px 3px 8px #333333;
-webkit-box-shadow: 3px 3px 8px #333333;
box-shadow: 3px 3px 8px #333333;}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;}
Strangely I do not seem to be allowed to post images to demonstrate the problem. To see how these images appear check out my website at [1]: http://www.wellingtont2905.co.uk/story.html, look for yellow highlighted text and hover your cursor over it.
Any suggestions for how I stop Safari doing this?
Have sorted the problem. It has to do with having normal links underlined in my text, which I want. The solution has been to make the links a darkish blue, the background to my pop-up image the same blue and then change the colour of the text under the images to white. This means the text is still underlined, but in the same colour as the background and so you cannot see the underline! It works for me!!

Trying to align text with background image. If below a certain resolution the text to the left moves in. How can I fix this?

Here is the css code I am using:
#wrapper{
position:relative;
width:950px;
margin-left:auto;
margin-right:auto
}
#content {
text-align: left;
padding: 0px 25px 0px 25px;
margin-left: auto;
margin-right: auto;
position: absolute;
left: 50%;
/*half of width of element*/
margin-left: -450px;
height: auto;
}
And this is the site: http://projectstratos.com/31-01-11/
Please ignore the social icons and the height issues.
To see what I mean make your browser smaller and bigger. The text moves to the right while the background image stays centered. How can I fix this?
I don't believe there's an actual 'fix' for the problem you're presenting.
When you say that the text 'moves to the right' in reality- the text is not moving at all.
Your background image is just trying to maintain itself in the center of the horizontal axis- which you're changing.
For example.. If you got Bungie's website http://www.bungie.net/Projects/Reach/default.aspx and you perform the same action. You'll get the same 'effect' that you are. The only difference is that the background of the text in their website isn't a part of the background image.
Here's what you need to do in order to 'fix' you're problem.
Separate the background (planet, space, etc..) from the logo, purple box etc.
Keep the space, planet, etc.. in the same spot as the background image that's there now.
Take the purple box and put it in it's own div that wraps around all your content
You're code will look similar to this:
<body>
<div id="purpleboxbackgroundimage">
<div id="contentandtext">
<h1>jhkljhlkjhlkj</h1>
</div>
</div>
</body>
I hope this helps.