Newbie here. I'm re-learning web on HTML5 - customizing a blogger site to cut-my-teeth. I've been able to change a lot from the defaults (w3schools is invaluable!) but I'm getting stuck when trying to change formats for specific objects.
Three things I can't figure out as examples (site www.paddlebeforethewave.com)
1) Featured Post (top) - image wrapping text is a default behavior for blog posts that isn't followed for featured post. I was able to change the image/size position as below - but can't figure out how to have text wrap the image.
.FeaturedPost .snippet-thumbnail img {
max-width: 100px;
float: left;
margin: 0px;
padding: 0px;
display: inline;
}
2) Featured post (top) - I want to change background color of only the featuredpost. I've tried to identify and modify it as follows - but no effect.
.Blog .blog-posts .post-outer-container, #page_body .FeaturedPost {
background: $(posts.background.color);
min-height: 40px;
padding: 30px 40px;
width: auto;
}
OR
.FeaturedPost .bgcolor {
background-color: #cfe2f3;
}
OR
many permutations of above
3) Page 2 content - I created a second page (http://www.paddlebeforethewave.com/p/contact.html) and the formatting is lost for vertical padding and location of page labels.
Is my approach flawed? Could you use one fix as example (I want to learn!)
thank you!
Screenshot for (1) and (2)
1) Add the following code to your theme:
.FeaturedPost .snippet-thumbnail,
.FeaturedPost .post-snippet {
display: inline;
}
2) Your approach is fine, if you haven't seen any changes, try to clear your browser cache. Correct classes for featured post are:
.Blog .post-outer-container, #page_body .FeaturedPost {
}
3) I'm not sure I can see the problem. Could you provide a screenshot, please?
EDIT:
Found it! Go to your theme code and add following property to this class:
.item-view .blog-name {
-webkit-flex-flow: column;
flex-flow: column;
}
I see you fixed your problem I did however see an issue on your site. For big screens a white bar appears if the screen is larger than 1800px.
You can fix this by finding this code in your CSS
.sidebar-container
and adding
display:none;
You could test this in your browser by zooming out until the bar appears. Cheers
Related
.grid-layout .hentry {
position: relative!important;
display: inline-block;
width: 30%;
margin: 5px;
}
Can someone help me with this code? I placed this additional code for 3 'Posts' that should be
displayed in a horizontal but straight; upward moving line. But the posts are not displaying in a
straight line but in a descending format. Like a staircase. What can I do to fix this?
You can try several solutions:
Set the position to relative
Use <pre> in the HTML file
If none of these work try setting the display for block
Please tell me if it works.
I created a site on my blog where I'm putting yt videos. Unfortunately the container of this site goes left and I have no idea why. It doesn't happen to any other site of the blog.
I'm using Virtue theme - https://www.kadencethemes.com/product/virtue-free-theme/
Here's the link to the site I have problem with: http://mlodziez-wks.slask.pl/multimedia/wideo/
I would be more than thankful for help.
This is happening because you added that CSS in your stylesheet
.wideo {
width: 300px;
heignt: 169px;
display: inline-block;
}
Which class is getting called in your "body" tag. And you are forcing your body to stay in 300px width only. Therefore you need to remove it or replace it with
.wideo {
width: 100%;
heignt: 169px;
display: inline-block;
}
it is because you have the CSS class wideo iny our body element, that is adding the following CSS style to it:
width: 300px;
heignt: 169px;
display: inline-block;
You need to remove this class from the body, it is defined outside a CSS file, so it must be added over some theme customisation or similar stuff.
Set your css to
.wideo {
width:100%;
height: 169px;
display: inline-block;
}
This will solve your problem.
I am using the Kale Wordpress theme, and in the footer, I used an image widget for my logo. I am trying to center this image using the Additional CSS panel under customize. I believe my centering code is correct, and that I am just having trouble identifying the proper Selector or class to let CSS know what I am trying to center.
I tried using Inspect Element in Chrome to find what it says is the class name for the image but to no avail.
.image wp-image-14 attachment-medium size-medium .footer-row-3-widget widget widget_media_image {
display: block;
margin: 0 auto; }
If it helps my website is revoltmedia.org, and I am trying to center the logo at the bottom. Again I think the code I have for centering the image is fine, I am just having trouble figuring out what the name of the class/selector is for the image so I can actually call it, and center the image.
Thanks in advance!
Looking at the HTML with Chrome's dev tools (inspect) I can see that the footer seems to have an id for this widget (#media_image-3) so that could be your selector to use text-align: center;
Now, if you want to specifically target only this image (and none other), you can use a more specific selector like #media_image-3 > img.image and then you can use the properties you already have, like
#media_image-3 > img.image {
display: block;
margin: 0 auto;
}
Try this:
.footer-row-3-widget widget widget_media_image {
text-align: center;
}
I have having a few problems, with what should be a simple task.
I have spent a good while trying to fix them, but no luck.
Centre the Input boxes within the div - tried this solution, (didn't work): http://jsfiddle.net/pjAHG/27/
input {
display: block;
margin: auto;
max-width: 80%;
}
Make the background image fill the full screen, only to the bottom of my timer div... if I use a solid colour, it fills the screen though :/ I have tried all the ways I can find online, but no luck.
Media query does not seem to change the size of the text/submit button.
If anyone could share some info, or help for these problems, I would be grateful.
Here is my code:
https://codepen.io/anon/pen/dVNZZO
Thanks :)
Try this
.input-group{
max-width:80%;
margin:0 auto;
}
and
#media (max-width:768px) {
.btn-lg{
display:block;
max-width:100%;
white-space:normal;
}
.lead-subtitle {
color: #dbdbdb;
text-decoration: underline;
font-size: 1em;
display:block;
}
}
here is the updated pen.
centered the form element instead of the input fields as they are
set to display: table by bootstrap anyway
this question doesn't make quite sense to me. I have added a sample image and it fills the whole bg, have a look
Bootstrap sets white-space: nowrap for the .btn class; I overwrote it for you
https://codepen.io/anon/pen/xXgPjZ
I've made a simple intro website to my site, simply with the buttons 'Media' and 'Share' and a background. On my PC, when I run the site it appears exactly how I would like it to, however when I run it from my site's server (or JSFiddle) the second button doesn't appear. The image is on the server in the correct location.
#first {
margin: 0 auto;
margin-top: 5%;
text-align: center;
}
#second {
margin: 0 auto;
margin-top: 10%;
text-align: center;
}
https://jsfiddle.net/4cg2k722/1/ - Second button doesn't appear. (also appears like this on the server)
https://gyazo.com/6031a7b8c768120b8d7f4adb3e439e20 - How it appears on my PC.
I am using the same browser when I try both.
EDIT: When you load the page from the website, for a split second you see the icon of an unloaded image. before disappearing.
You had a typo in your HTML code. You were missing the closing " in your second <img> tag. The code should be <img src="http://i.imgur.com/4ZCrEHW.png">.
seem that you miss the location of your pictures. http:/asscave.co.uk/wallpaper.jpg do not reach; same for the 2 other pictures http://asscave.co.uk/media.png and http://asscave.co.uk/share.png.
check the link by copy and paste it in browser seperately. If it appears in your browser it must appear also on your Web page.
try to improve your CSS like this
html,body {
width:100%;
height:100%; //no need to specify
background-image:url(https://i.gyazo.com/6031a7b8c768120b8d7f4adb3e439e20.png)
margin: 0 auto;
text-align: center;
}
#first {
//set the width and float it
margin-top: 5%;
}
#second {
margin-top: 10%; //why 10px as margin-top?
//set the width and float it
}