Squarespace stretch gallery across page - html

I switched over last year from cargocollective to squarespace. I'm happy with a lot of the things sqaurespace allows for. But not having access to the actual code makes customization so much more confusing for me as a novice. I tired inserting a bunch of different things into the custom CSS with no luck.
I've been playing around in the inspector element and was able stretch the gallery across the screen however I've had no luck actually accomplishing it through squarespace!
Any help in achieving this would be greatly appreciated! http://www.vernacularstudio.com/work/

I ended up fixing it by inserting this into the custom CSS in the Design section
The difficult part was just isolating out what the actual div element I wanted changed was I suppose.
#block-yui_3_17_2_17_1431527054679_7625 .sqs-gallery-block-grid element.style {
margin-left: 0px;
margin-right: 0px;
padding-left: 0px;
padding-right: 0px;
max-width: 100%;
}
.content-inner {
background-color: #fff;
max-width: 100%;
margin: 0 auto;
padding: 100px 8%;
padding-left: 0px;
padding-right: 0px;
}

Related

How to Print Angular Dashboard Content

Im currently in the process of creating a legal document automation program for the company i work for, however i have run into one issue on possibly one the last step of completing this web app.
I am using the default angular Dashboard layout and set-up, as you can see below.
The document in the dashboard scrolls a little as it is a full document, however it only prints one page worth of the scrollable content. as shown below.
I can show code if any one thinks it will help however in terms of printing using angular and components i haven't found anything yet, so it's all based around window.print() currently with a lot of CSS changes to get it to look right.
I will however show the css code here(its a bit overkill with me trying to figure out how to accomplish this):
#media print{
.documentView{
position: fixed;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
margin-top: 20px;
margin-bottom: 20px;
width: 100%;
overflow: visible !important;
z-index: 10;
display: block;
width: auto;
height: auto;
overflow: visible;
}}
if anyone has done something like this before or has any tips regarding this, would be much appreciated.
You can try this css property :
https://developer.mozilla.org/fr/docs/Web/CSS/break-inside[break-inside][1]

Remove margins on Wordpress theme

I'm using Wordpress and I currently have installed Tesseract theme on my site: (http:// instantiwebs . com)
I would like to remove left/right margins on everything, like this site did it: http://tyler.com/. It is using also the same theme.
I've looked through the CSS style and can't seem to find the right section to edit. The stylesheet is located here: http://alexardavin.com/instantiwebs.com/wp-content/themes/Tesseract/style.css
Help would be really appreciated, thanks!
Just add this code to the bottom of the stylesheet, it should work for you.
EDIT: Make sure you have the !important statements.
#site-banner {
max-width: 100%!important;
padding-left: 20px;
padding-right: 20px;
}
#footer-banner {
max-width: 100%;
padding: 0 20px;
}
#site-banner-right {
right: 20px!important;;
}
Use the free plugin Wordpress My Custom CSS.
It is light, and for small CSS edits you don't change the theme source code.
It prevents your edits to be overrided when you update.
body .site {
padding: 0;
margin-top: 0;
margin-bottom: 0;
box-shadow: none;
}
try above code

How to align a Wordpress navigation bar to the right of a logo?

I'm trying to get my navigation bar to the right of the logo in my Wordpress theme. It's being built with Underscores. I've managed to line up the primary navigation and the logo the way I want it, basically, with this CSS:
.main-navigation {
position: relative;
float: right;
top: -4em;
width: 55%;
display: block;
clear: both;
font-family: 'Lato', sans-serif;
text-transform: uppercase;
}
.main-navigation ul {
list-style: none;
margin: 0;
padding-left: 0;
float: right;
}
and here's a picture of how I want it to look:
I understand that negative margins (assuming top: -4em; is considered with negative margins) aren't elegant or the best way to handle these sorts of things. Plus, I generally find these kinds of workarounds usually come back to bite me later on.
I'm new to playing around with JSFiddle, so I hope I've done this correctly! Here's my code, now condensed!: http://jsfiddle.net/DMDesigns/d39ej96r/11/
What's the best way to make this happen? I've been searching, seen a lot of people ask this question, but many of the answers have been too specific to their website to help me.
This took me the better part of the day to figure out, yesterday, but disappointed with the lack of responses, here's what I figured out. I'm posting it here for anyone else having a similar problem.
First, I took the logo (named .header-image) and added:
float: left;
position: relative;
Then I took the navigation I wanted to the left of (named .main-navigation) and removed my workaround, which was
float: right;
top: -4em;
width: 55%;
and changed clear:both; to clear:none;
I added a little personal CSS to my .main-navigation to make it match the logo which was
height: 112px;
background: #69d7f9;
z-index: -1;
padding: 28px 0;
and I removed any floats from .main navigation ul.
It's better to create a main div and insert both logo and navigation section in the same div with float:left; for both of them. Let me know if you get this or I'll let you know by an example.
Using the Underscores starter theme for WordPress, the navigation bar can be floated to the right of the logo (or site title) using the following method:
Add the following CSS to your style-sheet:
.site-branding{
float: left;
display: inline-block;
}
.site-description{
display: none;
}
#site-navigation{
float: right;
clear: none;
width: auto;
}
These instructions are based on the Underscores theme as is before customisation.

Blank space at the bottom of the page

Please visit this website.
There is a blank space at the bottom. I checked it and there is no minimum height mentioned in my css.
I suspect it's in the body's css details as below:
body {
line-height: 1.5;
font-size: 87.5%;
word-wrap: break-word;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
padding: 0;
border: 0;
outline: 0;
background: none repeat scroll 0 0 #EFEFEF;
}
html, body, #page {
height: 100%;
}
This removed the bleed for me in Safari 6.0.3;
#footer-wrapper {
margin-top: 40px;
background: url("../images/footer.png") repeat-x scroll 0 0;
overflow: hidden;
}
You might want to handle that overflow differently tho, based on the content inside it. But this should fix the white space.
I figured it out by just deleting nodes from the DOM bottom-up. It had to be in the #footer-wrapper. As margin-bottom didn't work and you were using relative positioning I figured it was some shadow styling bleeding out of that element.
Update (better fix)
Just found the real issue to the problem;
.clearfix::after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
Change content: "."; to content: ""; and it's fixed. Or just remove that style at all, as it doesn't seem to have use in that case.
"overflow: hidden"
makes things harder but try,
"overflow: auto"
in order to be able to flow when you need.
I'm late to the show here but it may help somebody in my case I had an empty space at the top I added the margin-top=-20px now the empty space at the bottom, tried almost all suggestions I found on these and many threads and nothing. Decided to run it thru some HTML validator there are a few none of them pick up but after a couple one found an extra character(`) at the end of a tag, and that was it, so it was user clumsiness, took that thing out now my page was shifted, took the negative margin and all good. So try a validator and look for something like this.
margin-bottom: 0px;
This would do it
Btw ..nice site dude :)
Sometimes, it's some iframes/objects that are created by third party services that create this blank space. In my case, Google Adwords and Google Analytics was creating this. So, I removed by adding this CSS:
object[type="application/gas-events-cef"],
iframe[name="google_conversion_frame"] {
display: none !important;
height: 0 !important;
width: 0 !important;
line-height: 0 !important;
font-size: 0 !important;
margin-top: -13px;
float: left;
}
Maybe you will need to add some extra rules for your case. Hope that helps.

Agile Web Development With Rails example displays image over text

I'm reading a book (Agile Web Development With Rails) and I'm encountering a problem on page 96.
I've stuck to the code in the book exactly, but I get this.
I know another way to approach this is to use a table, but I want to know if there is another solution first.
I would organize these comments using divs. The first div to house the image and comment. The second div to house the image. And the third to house the comment.
The html:
<div class="comment-container">
<div class="comment-img">
<!whatever code you use to pull images from the database>
</div><!ENDcomment-img>
<div class="comment-field">
<!whatever code you use to pull comment content from the database>
</div><!ENDcomment-field>
</div><!ENDcomment-container>
The CSS:
.comment-container{
padding: 5px;
border-bottom: 1px dashed #009fe4;
margin: 2px 0 5px 0;
}
.comment-img{
float: left;
width: 80px;
height: auto;
}
.comment-field{
width: 700px;
height: auto;
padding: 0 0 0 10px;
}
I hope this helps out.
#subm0ral
It's the position: absolute; in the rule img of your CSS that make the image above the text. See help