I have a problem with the website I'm currently making for my art
theyoungillustrations.com
I have absolutely no experience in coding, so please explain like I'm five
I'm altering a excisting code, but I experience a problem with the sidebar. Because I made a banner (at the top), the sidebar is currently under it and I can't find out how I can fix that without ruining the mobile-sidebar.
This here seems to be the target, but the style-ing part is the one I'm unsure of.
<div id="sidebar" class="{select:Header Text Case} ">
<div class="inner animated slow">
<div class="wrap">
<nav class="sidebar-navigation cl">
<ul>
{block:IfHomeLink}
<li>Home</li>
{/block:IfHomeLink}
{block:HasPages}
{block:Pages}
<li> {Label}</li>
{/block:Pages}
{/block:HasPages}
</ul>
</nav>
</div>
</div>
</div>
<div id="header" class="{select:Header Text Case} ">
<div class="wrap">
<div class="inner">
<div class="logo">
{block:ifnotlogoimage}
{Title}
{/block:ifnotlogoimage}
{block:iflogoimage}
<img src="{image:Logo}" alt="logo" />
{/block:iflogoimage}
</div>
<nav class="navigation cl">
<ul>
{block:HasPages}
{block:Pages}
<li> {Label}</li>
{/block:Pages}
{/block:HasPages}
</ul>
</nav>
</div>
</div>
<div class="sidebar-toggle">
Menu
</div>
<div class="close-mobile-modal">
<svg width="16px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M7.172,10 L3.642,6.47 L0.102,2.93 L2.928,0.1 L10,7.173 L17.07,0.103 L19.9,2.93 L12.827,10 L19.897,17.07 L17.07,19.9 L10,12.827 L2.93,19.897 L0.1,17.07 L7.173,10 L7.172,10 Z"></path>
</g>
</svg>
</div>
</div>
</div>
</div>
Then I have this:
}
#sidebar h3 {
margin-bottom:20px;
color:{color:Header Text};
font-size:13px;
}
#sidebar-navigation {
color:{color:Header Text};
background:{color:Header Background};
font-size:{text:Header Size};
}
But I'm clueless. Thanks for helping.
This is because you need to add a breakpoint for various devices ,you can take help of this url :https://www.w3schools.com/css/css_rwd_mediaqueries.asp
Related
I am building a website and I came across an issue. The footer of this page doesn't stretch to the edge of the website, like it does on this page.
Here is the HTML of the first page where the footer is displaying incorrectly.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/main.css" type="text/css" />
<title>ItsBabylicious.com - cute soft embroidered baby blankets & other embroidery</title>
</head>
<body>
<div class="wrap">
<h1 id="logo">Itsbabylicios.com<br /></h1>
<ul id="menu">
<li>Home</li>
<li>Gallery</li>
<li>Products</li>
<li>Store</li>
<li>Contact</li>
</ul>
<div class="row">
<div id="text" class ="column" style ="width:%100">
<h2>Baby gifts and embroidery </h2>
<p>Here at Babylicous.com we sell baby blankets. The Yummy type that babys just want to rub on their face.</p>
<p>Babylicious blankets are special. Each balnket is embroidered to your custom order. in over 40 colors if you want a blanket truly special contact us as we are a fully custom embroidery shop that aims to please</p>
</div>
<div class="column" style="width:%100">
<img src="custom name on baby blanket.jpg" alt="Cutest Baby blanket pic ever!" style="max-width: 100%;border-radius: 8px">
</div>
<div id="green_bubble">
<p>check out our new etsy shop
</div>
</div>
<!-- Generated by https://smooth.ie/blogs/news/svg-wavey-transitions-between-sections -->
<div style="height: 150px; overflow: hidden;" ><svg viewBox="0 0 500 150" preserveAspectRatio="none" style="height: 100%; width: 100%;"><path d="M0.00,49.98 C149.99,150.00 349.20,-49.98 500.00,49.98 L500.00,150.00 L0.00,150.00 Z" style="stroke: none; fill: #FF99CB;"></path></svg></div>
<div id="footer">
<div class="wrap">
<div id="bubble"><p>We are located in Lakewood NJ 08701 just give us a call 732 305 0260</p></div>
<div id="copyright">
<p>Copyright © 2008 − Happy Template − Design: Luka Cvrk, <a title="Awsome Web Templates" href="http://www.solucija.com/">Solucija</a></p>
</div>
<div class="clear"></div>
</div>
</div>
</body>
</html>
In the links you provided, on the second page's source, if you check your div with id="footer" is wrapped in a div with class="wrap" while on the gallery page its not.
and since the wrap class has a fixed width of 900px, so the footer is also of the same width, just move the footer outside the wrap and it will become full width.
Hope it helps.
For example, in the HTML I have a id="section1"
and in the SVG I have an href="#section1" on a circle I can click. At the moment, this takes me to svgname.svg#section1 rather than htmlpagename.html#section1.
Any advice would be much appreciated!
Edit:
Circle in SVG that i've linked:
<a
id="a295"
class="js-scroll-trigger"
href="#portfolio">
<ellipse
onclick="#portfolio"
class="scroll-down"
fill="#ffffff"
fill-opacity="0"
id="path3905"
cx="726.10693"
cy="731.57501"
rx="24.696276"
ry="24.81061" /></a></svg>
How i've referenced it in HTML:
<embed class="nopadding scroll-down" src="img/homepagefinal7.svg"
style='width:100%;display: block;' />
where i want it to scroll to:
<section id="portfolio">
<div class="wow fadeIn container-fluid" style='font-family:"Baskerville"; margin: auto;'>
<!-- Portfolio -->
<div class="row">
...
...
...
thanks in advance for any help!
Here is my code:
<div class="wrap">
<div id ="header">
<a href="index" class = "logo">
<img src = "logo.png" alt = "" />
</a>
<nav class="navigation">
<ul>
<li>Share</li> |
<li>Join</li> |
<li>See Safty Tips</li> |
<li>Settings</li>
</ul>
</nav>
</div>
<div class="wrapper">
<img src="accident.png" alt="">
<div id="right-content">
<h2>Hit and Run No Injuries</h2>
<p>2.610 miles from your new neighbor<br />
May 20, 2015 at 12.34 PM </p>
<h4>California HWP 2 - High Level</h4>
</div>
</div>
<div class="wrap">
<ul class="secure_v5">
<li id="li-incident">
<a class="inviteLink dark" href="/v5/Resources.aspx?IFrameURL=Invitationv5&vn=&gORn=1">See Incident Location</a>
</li>
<li id="login-signup">
<a class="button dark" href="V4/Login.aspx?v5=1">Share Incident with Friends</a>
</li>
</ul>
</div>
<div class="thanks">
<p>Sincerely,<br />
The AlertID Team</p>
</div>
<p style="text-align:center;">This sponsor is helping to protect your neighborhood</p>
<div class="footer-links">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
and here is jsfiddle , (didn't include images)
When i run this code, some alignment is not correct,
I need something same like this
I just confused with which exact css can be used, Can anyone help me please?
Thanks,
Use HTML tables to control the design layout and some presentation. You may be used to using pure CSS layouts for your web pages, but that approach just won’t hold up in an email environment.
Use inline CSS to control other presentation elements within your email, such as background colors and fonts.
You just put div #right-content to right
try it on CSS.
#right-content {
float:right;
width:600px;
}
#right-content h2{
text-align:center;
}
I create a little attribute to h2 inside div #right-content
and define a fixed width for right-content. It's necessary because of attribute float: right.
This is a funny one.
I have a page using knockoutjs.
Everything works fine apart from one of the images in the page that doesn't show.
My HTML
<div class="cyclerItem"> #*Views and Visitors*#
<div class="cyclerFilter">
<img class="toggleImg" src="~/Content/imgs/City.png" width="30" height="30" />
</div>
<div class="cyclerFilterText">
<div>
<a id="modal-launcher4" > Business Unit </a>
<div id="modal-content4" class="arrow_box">
<div id="scroll4" class="scroll4">
<div id="container3column" >
<div id="primary1">
<p>Business Unit</p>
<ul>
<li>All</li>
</ul>
<ul data-bind="'foreach': businessUnits.businessUnitsList">
<li data-bind="'text': title, 'click': goToFunctions""></li>
</ul>
</div>
</div> #* Container ends*#
</div> #* scroll *#
</div> #*modul content 4 4 *#
</div>
</div> #* Cykler filter text*#
<div class="cyclerFilter">
<img class="toggleImg" src="~/Content/imgs/Globe_Alt.png" width="30" height="30" />
</div>
<div class="cyclerFilter">
<img class="toggleImg" src="~/Content/imgs/Globe_Alt.png" width="30" height="30" />
</div>
<div class="cyclerFilterText">
Geographies
</div>
</div>
My HTML rendered on the Client:
<div class="cyclerItem">
<div class="cyclerFilter">
<img class="toggleImg" src="/Content/imgs/City.png" width="30" height="30" />
</div>
<div class="cyclerFilterText">
<div>
<a id="modal-launcher4" > Business Unit </a>
<div id="modal-content4" class="arrow_box">
<div id="scroll4" class="scroll4">
<div id="container3column" >
<div id="primary1">
<p>Business Unit</p>
<ul>
<li>All</li>
</ul>
<ul data-bind="'foreach': businessUnits.businessUnitsList">
<li data-bind="'text': title, 'click': goToFunctions""></li>
</ul>
</div>
<div id="content1">
<p>Function</p>
<ul>
<li>All</li>
</ul>
<ul data-bind="'foreach': functions.functionsList">
<li data-bind="'text': title, 'click': goToDepartments"></li>
</ul>
</div>
<div id="secondary1">
<p>Department</p>
<ul>
<li>All</li>
</ul>
<ul data-bind="'foreach': departments.departmentsList">
<li data-bind="'text': title"></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cyclerFilter">
<img class="toggleImg" src="~/Content/imgs/Globe_Alt.png" width="30" height="30" />
</div>
<div class="cyclerFilter">
<img class="toggleImg" src="/Content/imgs/Globe_Alt.png" width="30" height="30" />
</div>
<div class="cyclerFilterText">
Geographies
</div>
</div>
as you can see there only one small difference, one of the image have the source where the tilde (~) didnøt get resolved inot the right path.
It's only that one image in that position, if I change the source to another path it still does not work, but as you can see the next image is exactly the same but it works...
something to do with mvc messing around because of the knockout code?
Or maybe just a simple error in my html that make MVC get crazy? First coming first serving. :)
I actually found the problem. It's probably a pure HTML problem.
There is an extra double quote at the end of one attribute in a li tag. :)
I made some tests and it doesn't matter where but if any attribte in any tag as an extra double quote, that img stop working. I wonder why that img src and not something else.
I'm new and i have a question about CSS3 and :empty pseudo-class.
I create a web ajax application. In my page layout I've got a sidebar and i want to hide this if is empty. So i wrote:
#my_sidebar:empty { display:none;}
For display it when isn't empty i wrote
#my_sidebar:not(:empty) { display:block; }
This is working but with chrome the sidebar appear only after one click on the page or on a link. Why?
Can someone help me?
Thanks! (excuse me for my terryfing english!!)
EDIT:
the html page:
<body id='body'>
<!-- Header -->
<header id="top" class="cf">
<div id="branding">
<h1>Project Management</h1>
</div>
<nav id="nav-user">
<ul>
<li><a id="user" href="profilo"><span id="username"></span><img id="avatar" class="avatar"></a></li>
<li><a id="company" href="azienda">Azienda</a></li>
<li><a id="logout" href="logout">Logout</a></li>
</ul>
</nav>
<nav id="nav-main">
<ul class="cf">
<li>
<button id="back" onClick="javascript: history.back();" href="#" />←</button></li>
</ul>
<!--popup con task finiti -->
<div id="task-ended" class="cf">
<div class="triangle-border top">
<div class="clear"></div>
</div>
</div><!--task-ended-->
<!--popup con task finiti -->
</nav>
</header>
<!-- Main Body -->
<div id="container" class="cf">
<div id="loading" style="display:none"><img src="images/loading.gif" /></div>
<div id="my_sidebar" class="sidebar"></div>
<div id="main" class="main"></div>
</div>
<footer class="cf" id="footer">
Mentis Project Management
</footer>
</body>
and css:
.sidebar {
float:right;
width: 36%;
text-align:left;
}
The Chrome bug apparently only happens with the display property, so you can instead set visibility: hidden; to make it invisible and position: absolute; to prevent the space from being reserved. This doesn't require the use of :not(:empty).
As always, whenever you find yourself pushing browsers to their limits, stop and ask yourself if there's a simpler way to do the job. Depending on what you need, simple calls to jQuery's show() and hide() method could work just as well. :)