Copy link to clipboard
Copied
Hello,
I don't use Dreamweaver a ton these days and seem to have forgotten some basic concepts.
I have a SKIN, 1 large JPG, that I wish to make responsive.
I assume the leaderboard (top) stays and the 2 sides disappear when viewed on a phone or smaller screen.
Can someone point in the direction of a template or tutorial that could help me achieve this.
Any guidance is greatly appreciated.
Cheers!
Babs
I'm not 100% certain what you are trying to do, but if I am reading this correctly then the use of border-image and border-width would work, providing your developers know how to use them and this is NOT for a email layout.
https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
Copy link to clipboard
Copied
Is this JPG a background or foreground image?
Copy link to clipboard
Copied
Hi Nancy,
I believe it would be the background.
Normally we just give the 3 pieces and they put it onto their template.
Now they are asking us to build it and provide the HTML file with the other pieces that would be necessary.
My top piece is 970x250 and the sides are 560x1000 .. The 2 sides are 200x800.
The sides actually sit below the Leaderboard. I attached a dummy to give you some idea.
I am playing with any files I can find but not having much luck.
I am trying to figure out sections?? eek!
Thank you!
Babs
Copy link to clipboard
Copied
I'm sorry, I don't understand. Can you provide some code examples of what you're working with right now?
Copy link to clipboard
Copied
Hi Nancy,
Its an embarrassing mess...but here is what I have thus far...The right side does not even show and it is in the wrong place it is on the side not below.
Here is the HTML:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>eCommerce template By Adobe Dreamweaver CC</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="eCommerceAssets/styles/eCommerceStyle.css" rel="stylesheet" type="text/css">
<script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/montserrat:n4:default;source-sans-pro:n2:default.js" type="text/javascript"></script>
</head>
<body>
<div id="mainWrapper">
<main>
<div>
<p><img src="F3.jpg" width="193" height="768" alt=""/></p>
</div>
<div>
<p><img src="970x250.jpg" width="970" height="250" alt=""/></p>
</div>
<div class="footerlinks">
<p><img src="rightside.png" width="193" height="768" alt=""/></p>
<p> </p>
</div>
</main>
</div>
</body>
</html>
Here is the CSS - (Note was still going through it line by line to clean it up, as its code from another file in a tutorial. Trying to learn this on the fly. Most have this has nothing to do with
my file... changing and previewing as I go.
@charset "utf-8";
/* Global Styles */
a:hover {
color: rgba(255,255,255,1.00);
}
/*header*/
header {
font-family: 'Montserrat', sans-serif;
color: rgba(146,146,146,1.00);
font-size: 16px;
font-style: normal;
font-weight: 400;
}
/* Logo placeholder*/
#logo {
float: left;
width: 139px;
text-align: center;
color: rgba(255,255,255,1.00);
background-color: rgba(190,190,190,1.00);
}
/* div for Links in header */
#headerLinks {
float: left;
width: calc( 100% - 139px );
text-align: right;
background-color: rgba(255,255,255,1.00);
}
/* Links in header */
#headerLinks a {
text-decoration: none;
color: rgba(146,146,146,1.00);
font-size: 14px;
}
/* Offer text banner*/
#offer {
font-family: 'Montserrat', sans-serif;
clear: both;
background-color: rgba(246,246,246,1.00);
color: rgba(146,146,146,1.00);
}
/* Main content of the site */
#content {
clear: both;
overflow: auto;
}
/* Sidebar */
#content .sidebar {
font-family: 'Montserrat', sans-serif;
color: rgba(146,146,146,1.00);
float: left;
width: 20%;
text-align: center;
background-color: rgba(246,246,246,1.00);
height: 784px;
}
/* main content of the site */
#content .mainContent {
float: left;
width: 100%;
text-align: center;
}
/*menubar's properties for menus in sidebar */
#content .sidebar #menubar {
text-align: left;
color: rgba(146,146,146,1.00);
position: relative;
left: 0%;
}
/* Search field in sidebar */
#content .sidebar #search {
width: 100%;
border-radius: 0px;
height: 42px;
text-align: center;
color: rgba(208,207,207,1.00);
font-size: 14px;
;
margin-bottom: 21px;
}
/* Whole page content */
#mainWrapper {
width: 80%;
padding-left: 10%;
}
/*menu elements */
.menu ul li {
list-style-type: none;
font-size: x-large;
position: relative;
left: -35px;
}
/* Product rows for catalog */
#content .mainContent .productRow {
overflow: auto;
color: rgba(146,146,146,1.00);
}
/* Each product Information in the catalog */
.mainContent .productRow .productInfo {
float: left;
width: 22%;
}
/* Prices of a products in catalog */
.productRow .productInfo .price {
font-family: 'Montserrat', sans-serif;
color: rgba(146,146,146,1.00);
font-size: 22px;
position: relative;
top: -20px;
}
/* Content holder for products in catalog*/
.productRow .productInfo .productContent {
position: relative;
top: -37px;
font-size: 14px;
font-family: source-sans-pro, sans-serif;
font-style: normal;
font-weight: 200;
color: rgba(146,146,146,1.00);
white-space: pre-wrap;
}
/* Buy button for products in catalog */
.productRow .productInfo .buyButton {
position: relative;
top: -48px;
width: 84%;
background-color: rgba(208,207,207,1.00);
height: 35px;
color: rgba(255,255,255,1.00);
border-style: none;
font-size: 14px;
text-transform: uppercase;
margin-top: 8px;
}
/* main */
#mainWrapper main {
clear: both;
overflow: auto;
background-color: rgba(208,207,207,1.00);
font-family: source-sans-pro, sans-serif;
font-style: normal;
font-weight: 200;
line-height: 1.8;
text-align: center;
}
/*Each main content */
#mainWrapper main div {
width: 0%;
float: left;
color: rgba(255,255,255,1.00);
text-align: justify;
}
/* Links in main */
main div a {
color: rgba(146,146,146,1.00);
display: block;
text-decoration: none;
text-align: center;
}
/* Product's images in catalog */
.productInfo div img {
width: 100%;
}
/*Links in sidebar */
.sidebar #menubar .menu ul li a {
color: rgba(146,146,146,1.00);
text-decoration: none;
}
.sidebar #menubar .menu ul li a:hover {
color: rgba(107,97,97,1.00);
text-decoration: none;
}
/* Menu headings in sidebar */
#menubar .menu h2 {
font-size: 14px;
}
/*Links under menus in sidebar */
#menubar .menu ul li a {
font-size: 14px;
}
/* Menus in sidebar */
.sidebar #menubar .menu {
margin-bottom: 29px;
}
/* Container for links in main */
main .mainlinks {
margin-top: -15px;
}
/* Media query for tablets */
@media screen and (max-width:700px) {
/* search field in sidebar */
#content .sidebar #search {
display: none;
}
/* sidebar */
#content .sidebar {
float: none;
width: 100%;
height: auto;
overflow: auto;
}
/* horizontal separators in sidebar */
#content .sidebar hr {
display: none;
}
/*The sidebar and maincontent of page */
#content {
position: relative;
top: -22px;
width: 100%;
overflow: hidden;
}
/*menu headings in sidebar */
#menubar .menu h2 {
display: inline;
font-size: medium;
}
/* Unordered List of links */
#menubar .menu ul {
display: inline;
}
/*list elements */
#menubar .menu ul li {
display: inline;
font-size: medium;
}
/*The link to be hidden in tablet view */
.sidebar #menubar .menu ul .notimp {
display: none;
}
/* menus in sidebar */
.sidebar #menubar .menu {
width: 100%;
text-align: center;
position: relative;
top: 16px;
}
/*menubar in sidebar */
#content .sidebar #menubar {
position: relative;
left: -7%;
overflow: hidden;
width: 95%;
}
/* offer banners content */
#mainWrapper #offer p {
font-size: small;
}
/* main content region of page */
#mainWrapper #content .mainContent {
overflow: hidden;
width: 95%;
margin-top: 40px;
}
/* Prices of products in catalog view */
.productRow .productInfo .price {
font-size: 19px;
}
/* Content holders in catalog view */
.productRow .productInfo .productContent {
font-size: 16px;
}
/* Buy buttons in catalog view */
.productRow .productInfo .buyButton {
font-size: 15px;
}
/* Container for links in main */
#mainWrapper main .mainlinks {
float: none;
width: 100%;
position: relative;
top: 17px;
clear: both;
text-align: center;
left: 0%;
}
/* Container for each main divisions */
#mainWrapper main div {
width: 44%;
text-align: justify;
font-size: 15px;
}
/* Links in main */
.mainlinks p a {
display: inline;
}
/* main region */
#mainWrapper main {
overflow: hidden;
}
/* Links in header */
header #headerLinks a {
}
/* Offer- Text banner */
#mainWrapper #offer {
}
/* Paragraphs in main */
main .mainlinks p {
display: inline;
}
}
/*media query for small screen devices */
@media screen and (max-width:480px) {
/*Container for links in header */
#mainWrapper header #headerLinks {
width: 100%;
text-align: center;
background-color: rgba(190,190,190,1.00);
}
/* Logo placeholder*/
#mainWrapper header #logo {
width: 100%;
text-align: center;
}
/*Offer - Text Banner */
#mainWrapper #offer {
text-align: center;
}
/* Menubar in sidebar */
#content .sidebar #menubar {
position: relative;
left: -8%;
text-align: center;
}
/*Menu headings in sidebar */
#menubar .menu h2 {
width: 100%;
display: block;
}
/* Each product in catalog view */
.mainContent .productRow .productInfo {
width: 100%;
display: block;
position: relative;
left: -2%;
}
#mainWrapper main div {
width: 100%;
margin-left: -16px;
overflow: auto;
}
/* Unordered list for menu elements */
.menu ul {
position: relative;
}
/* Container for links in main */
#mainWrapper main .mainlinks {
}
/* Main content which excludes the sidebar */
#mainwrapper #content .mainContent {
margin-top: -81px;
text-align: center;
width: 100%;
}
}
thanks!
babs
Copy link to clipboard
Copied
The image is irrelevant here. The concept of starting layouts in Photoshop and converting to sliced images or complex backgrounds is dead. It's a bad approach, as is the fact that you are mentioning fixed widths. Do you have a web design staff?
Copy link to clipboard
Copied
Hello,
I agree, the image was just to show how 3 JPGs would sit within a full screen. I have it as 3 separate jpgs.
Ultimately on a smaller monitor, the two side images would disappear and the center leaderboard would shrink. Fully responsive.
Unfortunately, I am it for the moment and trying to figure it out. I used DW years ago, but much has changed.
So struggling here to figure out.
Thanks,
Babs
Copy link to clipboard
Copied
Hi Babs,
It's really hard to try to figure out the purpose of those architectural columns of yours . Here is a stab at one way to approach it, using a structure built with our Flexbox layout tool:
Ignore the technique for now, but if you can just explain the purpose of the page and those "columns" of yours?
Copy link to clipboard
Copied
HI ALsp,
Thank you for document...
It helps and I am getting closer
thanks!
babs
Copy link to clipboard
Copied
I'm not 100% certain what you are trying to do, but if I am reading this correctly then the use of border-image and border-width would work, providing your developers know how to use them and this is NOT for a email layout.
https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
Copy link to clipboard
Copied
Hi Pziecina,
Thank you for that link
Lot of good information there to review and learn.
Piecing things together.
Thanks
babs