I have a problem with the theme on Tumblr called Brick. Whenever I post a photoset, on the entry page when I click on the photoset, a lightbox pops up and I can click through the images. However, my captions (the longer the description and the bigger the photo) are cut off by the edge of the browser.
You can see it in the pic I've uploaded here: http://i60.tinypic.com/xddwcx.png.
I've been poking around the code both the html and css, but I'm not sure what would be the best way to go about this. Is there a simple fix to correct the hidden overflow within tumblr coding? Much appreciated help on the matter in advance! The site is http://movementdetroitblog.tumblr.com and below is my code for the photosets.
{block:Photo}
<div class="photo">
{block:indexpage}
<div class="photo-hover">
<div class="captions">
<a href="{permalink}">
<span>x</span> {Timeago}
</a>
<a href="{permalink}">
<span>f</span> {NoteCountWithLabel}
</a>
</div>
<a href="{permalink}">
<div class="overlay"></div>
</a>
<div class="larger-width">
<img src="{PhotoURL-HighRes}"alt="{PhotoAlt}">
</div>
<div class="normal-width">
<img src="{PhotoURL-500}"alt="{PhotoAlt}">
</div>
</div>
{/block:indexpage}
{block:permalinkpage}
{LinkOpenTag}
<img src="{PhotoURL-HighRes}"alt="{PhotoAlt}">
{LinkCloseTag}
{/block:permalinkpage}
</div>
{/block:Photo}
{block:Photoset}
<div class="photo">
{block:indexpage}
<div class="photo-hover">
<div class="captions">
<a href="{permalink}">
<span>x</span> {Timeago}
</a>
<a href="{permalink}">
<span>f</span> {NoteCountWithLabel}
</a>
<a href="{permalink}">
<span>j</span> view photoset
</a>
</div>
<a href="{permalink}">
<div class="overlay"></div>
</a>
<div class="photoset">
{block:Photos}
<img src="{PhotoURL-500}" alt="{PhotoAlt}">
{/block:Photos}
</div>
</div>
{/block:indexpage}
{block:permalinkpage}
<div class="center-element">
<div class="responsive-level-1">
{Photoset-500}
</div>
<div class="responsive-level-2">
{Photoset-500}
</div>
<div class="responsive-level-3">
{Photoset-250}
</div>
</div>
{/block:permalinkpage}
</div>
{/block:Photoset}
Related
How can the picture be taken behind the ''top pick'' text?
The problem: https://iili.io/VQKa0F.jpg
Page which has the problem: https://awet123.blogspot.com/2022/04/testing-all-required-boxes-for-niche.html
Wrong place of .cg-our-top-pick. You should replace it to position after .cg-li-photo
Bad:
<div class="cg-layout-img">
<div class="cg-our-top-pick">TOP PICK</div>
<div class="cg-li-photo">
<a class="cg-aff-link" href="https://www.amazon.com/dp/B01M12RE4A?tag=kitlit-20&linkCode=ogi&th=1&psc=1" rel="nofollow noopener" target="_blank">
<img alt="Goxawee Cordless Drill Screwdriver" class="cg-img-1" src="https://m.media-amazon.com/images/I/413Spl-3a0L.jpg" loading="lazy" />
</a>
</div>
<div class="cg-li-ratebadge">
<div class="cg-rate"><span>9.4/10</span> <span>Our Score</span></div>
</div>
</div>
Good:
<div class="cg-layout-img">
<div class="cg-li-photo">
<a class="cg-aff-link" href="https://www.amazon.com/dp/B01M12RE4A?tag=kitlit-20&linkCode=ogi&th=1&psc=1" rel="nofollow noopener" target="_blank">
<img alt="Goxawee Cordless Drill Screwdriver" class="cg-img-1" src="https://m.media-amazon.com/images/I/413Spl-3a0L.jpg" loading="lazy" />
</a>
</div>
<div class="cg-our-top-pick">TOP PICK</div>
<div class="cg-li-ratebadge">
<div class="cg-rate"><span>9.4/10</span> <span>Our Score</span></div>
</div>
</div>
Result:
I have an html page that contains "links" to many sections of the page. I'm using a single page layout where if a link is clicked, you are not actually taken to a new page. Instead you are taken to the section of the page that you clicked on in the nav bar. I have a section for 6 images, each with a caption. I need the images to be in 2 rows with 3 images per row without using a table.(each image with its caption underneath) But I also need them to be responsive, so if the size of the browser is minimized then the images stack up on each other (caption still there). I tried using padding and margins but I wasn't able to get it to work so I don't have any CSS to post but I do have my HTML code. Can someone please help me out? Here is my code:
<div class="allimagesgallery">
<a href="images/image1.jpg">
<img id="galleryimages" src="images/image1.jpg">
</a>
<div class="caption">CAPTION.</div>
<a href="images/image2.jpeg">
<img id="galleryimages" src="images/image2.jpeg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image3.jpg">
<img id="galleryimages" src="images/image3.jpg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image4.jpg">
<img id="galleryimages" src="images/image4.jpg">
</a>
<div class="caption">CAPTION</div>
<a href="images/image5.jpeg">
<img id="galleryimages" src="images/image5.jpeg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image6.jpeg">
<img id="galleryimages" src="images/image6.jpeg">
</a>
<div class="caption"> CAPTION </div>
</div>
</div>
it would help us if we knew what your css in "allimagesgallery" looked like.
A little reformatting like the code below might help:
/*-----css---------*/
.imagesgalleryrow img{
display: inline-block;
}
<!-- /// HTML \\\ -->
<div class="allimagesgallery">
<div class="imagesgalleryrow">
<a href="images/image1.jpg">
<img id="galleryimages" src="images/image1.jpg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image2.jpeg">
<img id="galleryimages" src="images/image2.jpeg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image3.jpg">
<img id="galleryimages" src="images/image3.jpg">
</a>
<div class="caption"> CAPTION </div>
</div>
<div class="imagesgalleryrow">
<a href="images/image1.jpg">
<img id="galleryimages" src="images/image1.jpg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image2.jpeg">
<img id="galleryimages" src="images/image2.jpeg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image3.jpg">
<img id="galleryimages" src="images/image3.jpg">
</a>
<div class="caption"> CAPTION </div>
</div>
<div class="imagesgalleryrow">
<a href="images/image1.jpg">
<img id="galleryimages" src="images/image1.jpg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image2.jpeg">
<img id="galleryimages" src="images/image2.jpeg">
</a>
<div class="caption"> CAPTION </div>
<a href="images/image3.jpg">
<img id="galleryimages" src="images/image3.jpg">
</a>
<div class="caption"> CAPTION </div>
</div>
</div>
I was updating my template recently when I discovered an odd error. I have a closing {/block:Regular} at the top of my posts block but no corresponding opening Regular tag.
This seems to output inside every post type even if the content is empty (I would normally use this to capture Text posts).
When I add the {block:Regular} tag above it, it seems to break my theme.
Without it my theme works correctly.
Here is the top part of the posts block
<div id="contents"><!-- contents -->
{block:Posts}
<div class="post">
<div class="content text">
{block:Title}<h3>{Title}</h3>{/block:Title}
<div class="go">
{Body}
</div>
{/block:Regular}
{block:Photo}
</div>
<div class="content image">
{LinkOpenTag}
<img src="{PhotoURL-500}" {block:HighRes}style="display:none"{/block:HighRes} />
{block:HighRes}
<img src="{PhotoURL-HighRes}" class="highres">
{/block:HighRes}
{LinkCloseTag}
{block:Caption}
<div class="description">{Caption}</div>
{/block:Caption}
<p>
<span class="ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
{/block:Photo}
{block:Photoset}
</div>
<div class="content photoset">
{block:Photos}
<img src="{PhotoURL-500}" {block:HighRes}style="display:none"{/block:HighRes} />
{block:HighRes}
<img src="{PhotoURL-HighRes}" class="highres" />
{/block:HighRes}
{block:Caption}
{Caption}
{/block:Caption}
{/block:Photos}
{block:Caption}
<div class="description">{Caption}</div>
{/block:Caption}
<p>
<span class="ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
{/block:Photoset}
{block:Quote}
</div>
<div class="content quote">
<div class="symbol"></div>
<div class="quote">
{Quote}
</div>
{block:Source}
<div class="description">— {Source}</div>
{/block:Source}
<p>
<span class="ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
{/block:Quote}
{block:Link}
</div>
And although my blog displays correctly the <div class="content text"> gets inserted to the top of every post.
I have tried a couple of things to wrap the Regular tag properly but I think something else must be broken inside my template as although it looks OK in the browser, it's definitely bust in the console.
Have tried
<div class="post">
{block:Regular}
<div class="content text">
{block:Title}<h3>{Title}</h3>{/block:Title}
<div class="go">
{Body}
</div>
{/block:Regular}
{block:Photo}
</div>
<div class="content image">
With this markup though the posts are being rendered outside of my <div id="container">
See here:
I have also tried replacing {block:Regular} with {block:Text} and the corresponding closing tags and seems to be the same issue.
I cannot find a non closed tag, so I am fairly certain the markup is correct, but maybe I am missing something.
If anyone wants the full template I will add it to a jsfiddle.
Well I managed to solve it, by crook or hook as they say.
My markup now looks like this:
<div id="contents"><!-- contents -->
<ol id="posts"><!-- posts -->
{block:Posts}
{block:Text}
<li class="post text">
<div class="go">{Body}</div>
<p>
<span class="icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Text}
{block:Photo}
<li class="post photo">
{LinkOpenTag}
<img src="{PhotoURL-500}" {block:HighRes}style="display:none"{/block:HighRes} />
{block:HighRes}
<img src="{PhotoURL-HighRes}" class="highres">
{/block:HighRes}
{LinkCloseTag}
{block:Caption}
<div class="description">{Caption}</div>
{/block:Caption}
<p>
<span class="icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Photo}
{block:Panorama}
<li class="post panorama">
{LinkOpenTag}
<img src="{PhotoURL-Panorama}" alt="{PhotoAlt}"/>
{LinkCloseTag}
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</li>
{/block:Panorama}
{block:Photoset}
<li class="post photoset">
{block:Photos}
<img src="{PhotoURL-500}" {block:HighRes}style="display:none"{/block:HighRes} />
{block:HighRes}
<img src="{PhotoURL-HighRes}" class="highres" />
{/block:HighRes}
{/block:Photos}
{block:Caption}
<div class="description">{Caption}</div>
{/block:Caption}
<p>
<span class="icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Photoset}
{block:Quote}
<li class="post quote">
<div class="symbol"></div>
<div class="quote">
{Quote}
</div>
{block:Source}
<div class="description">— {Source}</div>
{/block:Source}
<p>
<span class="icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Quote}
{block:Link}
<li class="post link">
<h3><a href="{URL}" class="link" {Target}>{Name}</a></h3>
{block:Description}
<div class="description">{Description}</div>
{/block:Description}
<p>
<span class="icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Link}
{block:Chat}
<li class="post chat">
{block:Title}
<h3>{Title}</h3>
{/block:Title}
<ul class="chat">
{block:Lines}
<li class="{Alt} user_{UserNumber}">
{block:Label}
<span class="label">{Label}</span>
{/block:Label}{Line}
</li>
{/block:Lines}
</ul>
<p>
<span class="icon-link icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Chat}
{block:Video}
<li class="post video">
{Video-400}
{block:Caption}
<div class="description">{Caption}</div>
{/block:Caption}
<p>
<span class="icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Video}
{block:Audio}
<li class="post audio">
{AudioPlayerGrey}
{block:Caption}
<div class="description">{Caption}</div>
{/block:Caption}
<p>
<span class="icon-link ion-ios-infinite-outline"></span>
{block:Date}{DayOfMonthWithZero}.{MonthNumberWithZero}.{ShortYear}{/block:Date}
</p>
</li>
{/block:Audio}
{block:RebloggedFrom}
<li>
<p class="description">{lang:Reblogged from ReblogParentTitle 2}</p>
</li>
{/block:RebloggedFrom}
{block:HasTags}
<li>
<ol class="description tags ion-ios-pricetag-outline">
{block:Tags}<li>{Tag}</li> {/block:Tags}
</ol>
</li>
{/block:HasTags}
{block:PostNotes}
<li>
{block:Permalink}
{block:IfDisqusShortname}
<div id="disqus_thread"></div>
<script type="text/javascript" src="https://disqus.com/forums/{text:Disqus Shortname}/embed.js"></script>
<noscript>{lang:View the discussion thread}</noscript>
{/block:IfDisqusShortname}
{/block:Permalink}
{PostNotes}
</li>
{/block:PostNotes}
{/block:Posts}
{block:SearchPage}
<li class="post">
{block:NoSearchResults}
<p>Sorry, no posts are tagged with "{SearchQuery}."</p>
<p>index page</p>
{/block:NoSearchResults}
</li>
{/block:SearchPage}
</ol><!-- end posts -->
{block:IndexPage}
<div class="post">
<div class="content nav" style="text-transform:lowercase;">
{block:PreviousPage}
{lang:Previous}
{/block:PreviousPage}
({CurrentPage}/{TotalPages})
{block:NextPage}
{lang:Next}
{/block:NextPage}
</div>
</div>
{/block:IndexPage}
</div>
</div><!-- end contents -->
I must have inherited the {Block:Regular} statement from the original template and not known what it was. But I also had a non closed tag somewhere. I also converted the posts blocks to an ordered list, so semantically it's a bit clearer.
Now the output looks like this:
I have created three images in a column and I set column-count: 3; plus border-width for those three images. Now I need to know about the hover state.
HTML:
<div class="wrap">
<h1 class="content-title"><span>Popular</span></h1>
<div class="col-3">
<div class="popular">
<a href="#">
<img src="http://s7.postimg.org/bq6aahcpn/Book_ll_4.jpg"/>
</a>
</div>
<div class="caption">
<a href="olymbic.html">
<h2>Saina nehwal first match</h2>
<p>fasdfjaksdksdfh skdfk</p>
</a>
</div>
<div class="popular">
<a href="#">
<img src="http://s7.postimg.org/bq6aahcpn/Book_ll_4.jpg"/>
</a>
</div>
<div class="caption">
<a href="#">
<h2>Saina nehwal first match</h2>
<p>fasdfjaksdksdfh skdfk</p>
</a>
</div>
<div class="popular">
<a href="#">
<img src="http://s7.postimg.org/bq6aahcpn/Book_ll_4.jpg"/>
</a>
</div>
<div class="caption">
<a href="#">
<h2>Saina nehwal first match</h2>
<p>fasdfjaksdksdfh skdfk</p>
</a>
</div>
</div>
</div>
When I hover an image, it needs to look like this:
.
And here is my jsfiddle: http://jsfiddle.net/6g7v899q/
May I know, how to do this?
Thanks in advance.
something like this then ?
img{margin:40px;border:25px solid white;}
img:hover{border-left:25px inset gray;border-right:25px outset gray;border-top:25px outset white;border-bottom:25px inset white;}
<img src="http://lorempixel.com/200/200" width="200" height="200" />
At the bottom of this page http://kimcolemanprojects.com/cyanotype-hats.html there is a section with the title "Related Projects".
I can't move this title down from the grid of images above. I think there must be an error in the Html structure, but I can't find it. I have given the element padding and margin but it still will not move.
This is a section of the html code from that page:
<div class="container">
<div id="header">
<h1>KIM COLEMAN PROJECTS</h1>
<div id="nav">
<ul>
<li id="work">
Work
</li>
<li id="about">
About</li></ul>
</div><!--end nav-->
</div><!--end header-->
<div class="main-individual">
<!-- grid of Work -->
<a rel="hats" href="images/hats/velour 2.jpg" class="fancybox" data-title-id="title-5">
<div class="view view-sixth">
<img src="images/hats/small-velour 2.jpg" />
<div class="mask">
<div class="mask-text">
<h2>Velour trilby with Cyanotype ribbon</h2>
<p></p>
</div>
</div>
</div></a>
<div id="title-5" class="hidden">
Velour trilby with Cyanotype ribbon</div>
<a rel="hats" href="images/hats/balaclava.jpg" class="fancybox" data-title-id="title-1">
<div class="view view-sixth">
<img src="images/hats/small-balaclava.jpg" />
<div class="mask">
<div class="mask-text">
<h2>Balaclava with Cyanotype ribbon</h2>
<p></p>
</div>
</div>
</div></a>
<div id="title-1" class="hidden">
Balaclava with Cyanotype ribbon.
</div>
<span class="similar"><h6>Related Projects</h6></span>
<a href="unique.html" >
<div class="view-small view-sixth-small">
<img src="images/related-project-images/uniques.jpg" />
<div class="mask-small">
<div class="mask-text">
<h2>Unique</h2>
</div>
</div>
</div></a>
<a target="blank" href="http://kimcolemanjennyhogarth.co.uk/glare.htm" >
<div class="view-small view-sixth-small">
<img src="images/related-project-images/glare.png" />
<div class="mask-small">
<div class="mask-text">
<h2>Glare</h2>
</div>
</div>
</div></a>
<a target="blank" href="http://kimcolemanjennyhogarth.co.uk/act_natural.htm" >
<div class="view-small view-sixth-small">
<img src="images/related-project-images/act-natural-glare.png" />
<div class="mask-small">
<div class="mask-text">
<h2>Act Natural Glare</h2>
</div>
</div>
</div></a>
</div>
</div>
You could reduce the margin in the .view-small class, e.g. to margin: 20px 2%. Is this what you meant?
Update: Try to set the line-height: 30px; in .similar class. This moves the title down to the small images.