Squarespace 사이트용 CSS로 이미지의 위치를 완벽하게 제어 (Fully Control The Location of an Image with CSS for Squarespace site)


문제 설명

Squarespace 사이트용 CSS로 이미지의 위치를 완벽하게 제어 (Fully Control The Location of an Image with CSS for Squarespace site)

3개의 이미지가 정렬되고 서로 같은 거리에 있도록 이동하려고 합니다. 여기 사이트가 있습니다.

https://www.leonardwarren.net/personal‑ training

하단 3개의 이미지 사이에 거의 같은 크기의 흰색 간격이 있어야 합니다.

이 이미지를 만들기 위해 Custom CSS를 사용하여 마우스를 만들었습니다. 호버 효과.

각 이미지의 코드 블록에서 이 코드를 사용했습니다.

<div class="image‑swap">
  <img src="image">
  <img src="imageonhover">
</div>

이 코드는 이미지를 서로의 위에 쌓습니다.

그런 다음 호버 효과를 위해 이 코드를 만들었습니다.

웹사이트로 이동하면 간격이 꺼진 것을 볼 수 있습니다.


참조 솔루션

방법 1:

The spacing is off because your images have different widths. Try to set the thesame widths for all of them, it should solve the problem.

I would use something like this:

.content‑wrapper img {
width: 100em;
height: 20em;

}

(by LeonardJWarrenYulia)

참조 문서

  1. Fully Control The Location of an Image with CSS for Squarespace site (CC BY‑SA 2.5/3.0/4.0)

#image #css #squarespace






관련 질문

이미지가 추가될 때 div 높이가 과도하게 늘어남 (div height overstretching when image is appended)

MS-Outlook 임베디드 이미지를 가져오고 MS-Access VBA를 사용하여 파일 시스템에 저장 (Getting MS-Outlook embedded images and saving them within the file system using MS-Access VBA)

Android 이미지 갤러리 이미지 자르기 및 ImageView 설정 (Android Image Gallery Crop Image and set ImageView)

Facebook은 드래그하여 이미지를 닫는 데 어떤 라이브러리를 사용합니까? (What library does Facebook use for dismiss image by dragging?)

이미지를 Picturebox(VB6의 이미지)에서 문자열(Base64)로 변환하는 방법은 무엇입니까? (How to convert Image from a Picturebox(Image in VB6) to String(Base64)?)

HTML, Canvas 및 WebGL 간의 품질 차이 (Quality differences between HTML, Canvas and WebGL)

TBitmapImage는 Inno Setup 6에서 크기 조정된 디스플레이의 크기보다 크게 렌더링됩니다. (TBitmapImage is rendered larger than its size on scaled display in Inno Setup 6)

이미지 URL이 실제 이미지를 가리키는지 확인합니다. 문제를 일으키는 URL의 공백 (Check if an image URL points to an actual image. Space in URL in causing issue)

android studio에서 인텐트를 통해 여러 콘텐츠를 보내는 방법 (how can i send multiple contents through intent in android studio)

Squarespace 사이트용 CSS로 이미지의 위치를 완벽하게 제어 (Fully Control The Location of an Image with CSS for Squarespace site)

iText7을 사용하여 PDFButtonFormField에 이미지를 추가할 때 종횡비를 유지하는 방법 (How to Maintain Aspect Ratio when Adding an Image to a PDFButtonFormField using iText7)

png 이미지에서 픽셀 색상 추출 (extracting pixel color from png image)







코멘트