Creating a section of white background over a full-bleed background - html

I'm building a photography site using a builder called "photodeck" for a business.
The issue comes that the builder doesn't allow for me to create a background behind the menu and logo, so I have to do this through editing the theme CSS and HTML - I'm a coding rookie and after a lot of experimentation I cannot get it to work.
Codepen link: https://codepen.io/gknowl/pen/PeJbOE (For both CSS and HTML)
HTML (So I could post the codepen link) :
<pd-page>
<pd-block id="navib" class="dont_overlap">
<pd-component id="logo" type="logo_text" />
<div id="navlinks">
<pd-component id="menu" type="menu" />
<pd-component id="local" type="locale_switcher" />
</div>
</pd-block>
<pd-component id="hdtxt" type="text" class="dont_overlap" />
<div id="title_and_main_content_wrapper">
<div id="main_block">
<pd-component id="mainc" type="main_content" />
<pd-component id="commt" type="comments" />
<pd-component id="searc" type="search" drawer="duration:0.3,rotate_alt_content:90,init_state:closed,alt_content_pos:center,alt_content:,effect:slide_from_right" />
</div>
</div>
<pd-block id="footer" class="reserved_height dont_overlap">
<pd-component id="fttxt" type="text" />
<pd-component id="links" type="external_links" />
</pd-block>
<pd-component id="pwrdb" type="poweredby" />
</pd-page>
Picture: https://imgur.com/Fg62kt9 (The part above the green bar I'd like to have a light grey background)
Bonus: If anyone can help me out with making the logo bigger as well that would be a great help, the builder limits the size to the size pictured
I apologise if this is too basic, or if this is far too obvious - however I'm completely stuck.

Well your builder HTML markup is rendering in codepen so I am just gonna try to give you suggestions where you can make changes to get the desired result.
For making the logo bigger. Add increased width and height in this class. For responsiveness also change the width for same class in different media queries as well.
#ws_page #component_logo {
width: //As per need;
height: //As per need
}
For nav background colour try in this:
#ws_page #block_navib {
background: #ccc;
}

Related

Text and a form not centered under a certain width of window

I am implementing a responsive html page. I cannot reproduce the case on fiddle, so I published the page on "www.000webhost". Here is the link : https://test1flamant.000webhostapp.com/. Please use it on Firefox and let me know if this link does not work
The issue is that the text "Find your home" on the first page is not any more centered on the first image under an innerWidth that is approximately 695px. The text, under this limit, remains with a constant left margin.
I have the same issue with the form on the below second image under approximately the same limit.
To help you, I displayed clientWidth and innerWidth at the top of the page. Please don't pay attention to the other details on the page, as I am concentrating only on this issue.
Here is the relevant portion of html portion of code relative to this issue
<div class="homePageImage1" style="background-size:cover;">
<div class="position2 horizontal-center textAlignCenter lineHeight117 pinyonscriptregular120dieseFFFFFF">
Find Your Home
</div>
</div>
<div class="homePageImage2">
<div class="position3 horizontal-center" [formGroup]="searchFormGroup">
<div class="position4 border2 textAlignCenter backgroundwhite poppinsextrabold14diese372300">
Search
</div>
<span class="position5 width100percent" >
<input class="floatLeft dimension1 border3 poppinsregular16diese372300" type="text" placeholder="Dans quelle ville ? Quartier ?" formControlName="ville">
<input class="floatLeft dimension2 border4 poppinsregular16diese372300" type="text" placeholder="Votre budget max" formControlName="prixMax">
<div class="floatLeft dimension3 textAlignCenter lineHeight48 backgroundPrimary poppinsbold12diese372300">SEARCH</div>
</span>
</div>
<div class="position6">
Advanced search
</div>
</div>
If you only want the text "Find Your Home" to be always centered, you can first remove the "position: relative" property from the ".homePageImage1" class.
And add the #media rule to enable the property only if the window width is higher than a certain width (I found 1006px on my side).
It will look like :
#media (min-width:1006px) {
.homePageImage1 {
position: relative;
}
}
So the text will be centered according to the windows under 1006px.

Controlling the size of a spinning loading icon

Thanks again for anyone who can help me with what should be a seemingly easy problem! I just can't figure it out for the life of me. I am creating a sign up page that includes two areas. I want these input areas to be inline with an icon that comes up while it is checking the database.
I have everything setup and I think my html is proper. I have created a row that contains both the input box and the whirly loader I got from the internet. The only problem is when I run it the whirly loader is way too big and is not totally in line with the input box.
here is my html:
<div class="row">
<div class="col-xs-10">
<input type="text" class="form-control" id="usernameOrEmail" placeholder="Shattr Username or Email">
<label id = "usernameLabel"></label>
</div>
<div class="col-xs-2">
<div class="whirly-loader" id="usernameSpinner" style="display: none;">Loading...</div>
</div>
</div>
I then go in and point to the "whirly-loader" class, but nothing changes no matter what I set my width and height to. This may be too weird a question but if anyone has any suggestions that would be awesome. Here is my css:
.whirly-loader{
height:10%;
width:10%;
}
Your animation icon is set as a background to the whirly-loader selector? If yes, then just add background-size: cover and it should fit defined height and width.
BTW. Always paste your fiddle. It's easier to help.

jQuery slider for div elements not just images

I have created the divs and containers for some 'suggested items' at the bottom of this page im working on, would like it to be a slider where you click left and right to see more. But all jQuery sliders i've seen only work for images only (carousels), is there ones people could recommend for to me for this situation as it's not just images.
I presumed I cannot have DIV's inside of UL elements as that's what all the sliders I've seen use.
Here is my html for that slider area below. And a link to the page: http://bit.ly/18IOB8J
<div id="carousel-left"><img src="http://placehold.it/20x100" /></div>
<div id="suggestedproducts">
<div id="suggestedproduct-container">
<div id="suggestedproduct-img">
<img src="http://acsupply.mangdevelopment.co.uk/upload/category/5_FixingsHardwareSecurity.jpg" />
</div>
<div id="suggestedproduct-desc">
<h5>JCB 650W ELECTRIC JIGSAW</h5>
<p>£ 59.99</p>
</div>
</div>
<div id="suggestedproduct-container">
<div id="suggestedproduct-img">
<div id="suggestedproduct-img">
<img src="http://acsupply.mangdevelopment.co.uk/upload/category/5_FixingsHardwareSecurity.jpg" />
</div>
</div>
<div id="suggestedproduct-desc">
<h5>JCB 650W ELECTRIC JIGSAW</h5>
<p>£ 59.99</p>
</div>
</div>
<div id="suggestedproduct-container">
<div id="suggestedproduct-img">
<img src="http://acsupply.mangdevelopment.co.uk/upload/category/5_FixingsHardwareSecurity.jpg" />
</div>
<div id="suggestedproduct-desc">
<h5>JCB 650W ELECTRIC JIGSAW</h5>
<p>£ 59.99</p>
</div>
</div><!-- suggestedproduct-container -->
<div id="carousel-right"><img src="http://placehold.it/20x100" /></div>
I found Basic Slider to be one of the best and easiest slider scripts to integrate out there. Very light weight, has all the needed options:
It can slide images and or HTML content
It's responsive
Offers nice keyboard, mouse and scroll wheel controls
Very easy to integrate and customize
Fade or slide transitions
Timing options, control display options, ...
It replaced all other slider scripts I was using because it's very easy to integrate and customize and very light-weight and for bonus offers nice fade effect.
There are MANY jQuery sliders supporting all kind's of content. One of them I've used many times is http://tympanus.net/Development/CircularContentCarousel/
Source and tutorial can be found at http://tympanus.net/codrops/2011/08/16/circular-content-carousel/

Why won't some pictures show up in certain browsers but other photos of similar size and file do?

I built a website, http://charlottemobiletrainers.com and the main logo on the index page shows up for me using Chrome but not in Safari and doesn't show up for my friend on their laptop in any browser. The photo was a ".gif" and I changed the file to ".png" just to see if that changed anything but it didn't help. And then I tried renaming the file because I used "_" in it originally but that didn't help. I don't know what else to try.
The image is currently in my style.css file. Could that be the problem?
You've laid it out quite oddly to start with. I would do it like this:
<div id="featured">
<div class="left">
<h3>Mobile Personal Trainers</h3>
<p>Are you ready for summertime in Charlotte? Let Mobile Trainers help you look and feel your best with a personalized workout program <i>JUST FOR YOU!</i> Our personal trainers will go wherever you want whenever you want. Let's get started!</p>
<input type="button" value="Get Started!" onclick="parent.location='contact.html'">
</div>
<div class="right">
<img src="logo.png" width="blah" height="blah" alt=""/>
</div>
Then set the #feature to the width and height you want it to be then set the class .right to whatever width the logo is and the remaining width set to the .left class.

Float and expand problems

I'm not an experienced html coder, all of it was done without any professional help so the results look quirky.
The web site: www.cakery.co.il/beta
I have float and expand problems (as Dreamweaver states) - when I enter my site and try to resize the window, the top (blue) ribbon and the bottom ones are cut off and look weird.
How can I fix this?
For example, this is the top ribbon code in the css:
#blue_decoration {
height: 85px;
background-image: url(_images/top_stripe.png);
}
I'd appreciate your help.
Thank you
It's hard to exactly see what the problem is without seeing the rest of what's going on but I can nevertheless give some pointers.
I'll PM the link if you like, but you can as easily copy paste the following to see for yourself:
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
#blue_decoration {
height: 85px;
background-image: url('http://upload.wikimedia.org/wikipedia/commons/a/aa/Air_Force_Good_Conduct_Medal_ribbon.png');
}
#bottom_blue_decoration {
height: 30%;
background-image: url('http://upload.wikimedia.org/wikipedia/commons/a/aa/Air_Force_Good_Conduct_Medal_ribbon.png');
}
</style>
</head>
<body>
<header id="blue_decoration"> Hello World</header><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<footer id="bottom_blue_decoration"> don't collapse me! </footer>
</body>
</html>
You might notice that it repeats across the screen without many problems. However, there are no positions related to the styling as such; rather it is dependent on content not to collapse. It might be better, to say, specify top and bottom positioning. Another thing is that you are probably reusing ids - which should, strictly speaking, be used only once on a given page. This is easy enough to fix - just specify that piece of styling as a class (using a dot instead of a hash) and call it using the keyword class instead of id.
Try experimenting using non-absolute values for the background size, but instead responsive percentages. A significant question is: do you want any content to cover this background? If you want it to be an image without any content you may ultimately be better off using an <img> tag...