I am trying to create a simple dashboard to show information at a glance. I am using the swimlane number card chart found here: https://swimlane.gitbook.io/ngx-charts/examples/number-card-chart.
Everything is working but I can't get the title of a card to wrap to the next line if it is longer than the card, here is an image of what I am talking about:
I have tried applying style to the parent div and tried with selectors like ".ngx-charts-number-card.title" ".ngx-charts-number-card.title" ".card.title" etc. I can't even modify the style when using the inspector live in the browser. I can't find any documentation to style these elements so any help would be appreciated.
Related
Currently, I'm browsing some pages and I found that there's a page where the design is very pleasing to me. So I'm trying to replicate it, but unfortunately that I can't figure it out due to my lack of CSS skills.
So here's how that page work:
Whenever the class is active, it'll hop up a bit (the page I'm looking at is using Swiper, too!)
But however, the Hop-up image will go out of the box of Swiper
And what I'm doing right now, there's a box just like that page, but the image or anything else if it's larger than the current box, it'll be cut. I can't make it go outside of the Swiper's box.
Here's how I'm currently doing it, I made a quick dataSample and then mapped it, get the current slide to have the active class, and then CSS it. Any help is appreciated, many thanks.
I've left comment on what I'm doing in the CSS at CodeSandbox.
Code: CodeSandbox - Trying to create Hop-up image using Swiper
I'm having a hard time figuring out the most efficient way to resize text for mobile. I know per the documentation, making the text size responsive to the screen is fairly straightforward, simply add the is-size-*-mobile class to an element to reset the text size to the value of * (1-7) for mobile devices. What elements are the best place to do this? For example, I would like to be able to have all the text on screen change to size 7 on mobile, but so far I've had to add the is-size-7-mobile class to almost every text container on the page. While it's not impossible to do, it seems to be defeating the purpose of having such a class available through CSS.
Any tips would be greatly appreciated.
Although they lack a specific example, those Typography helpers are meant to be added to the element that holds the content you want to modify.
For example, if you want to modify the whole document consider adding it right to the body element:
<body class="is-size-7-mobile layout-documentation page-helpers">
The above example works on their documentation page you liked in your question. Just hit F12, add the modifier, and voilĂ , all the page changes text size.
I use shortcode to embed an HTML world map on one of my web pages. Right below the world map is a third party link for which I want to set the display value to "none", however since I have no CSS skills or web dev background I am having difficulty writing the custom CSS for this. I've played around with containers and specific page ID's, but no luck. The page is www.sheerheroine.com/map. Can anyone steer me in the right direction on how to write the code please? When I inspect the page I can see which container the link is in, however when I use this container the entire map is removed. Thanks!
The !important declaration makes the display CSS impossible to override. The following javascript would remove the element you wish to not display -- document.getElementsByClassName('fm-map-container')[0].childNodes[3].remove();. Try it in the developer's console. For it to work on the page, you would need to delay the execution until the element exists though. As others suggest, it would seemingly violate the terms of use of the lovely vector map you are using free of charge. For a proof-of-concept, however, you may find this code enlightening.
As the entire map con-taint is coming because of thirdparty image, better check with the that third party style code.
Or
in alternatively, just check the the height of the total map area.
lets assume here total height of map image is 10px from bottom.
and lets assume the height of that area(to which area,you don't want to show user) is 2 px from bottom.
Then create a div element, where you will put the entire map image, but follow the below stlye, where we can hide some portion of image to user
<div style="max-width: (10 - 2)px"> here .. put your map image url..</div>
My test site is at: http://www.stagecraft.org/msi/
On the third "page" (Portfolio) I have three images that flip around and show text on the "back". I have two problems:
I can't get the text where the architect, owner, and GC are listed to change. I have tried creating a class of .spinbody but when I apply it, the text doesn't change. I need a different text styling/size here.
The images aren't fitting their rectangular regions exactly. They seem to be shifted "down" a bit. The images are 300px x 500px and the regions are as well. But the images are offset from the regions.
Any ideas where my mistakes are? I am pretty much a novice and have been piecing this code together.
Thanks in advance for any assistance!
Steve
What style are you trying to aply to this text? There are already
css rules that style it and you may have some CSS overrides that
block your changes. You could add !important at the end of your
new rules but it isn't the best solution. The best solution would be
to inspect your CSS with some browser developper tools (ex: firebug
for firefox) and see how you can itegrate your new CSS rules to the
existing code.
For the second problem, there is a top-margin aplied to the images
so they are shifted down. the margin is aplied on #section1 img
line 173 of msi_style.css you could delete it but be sure it
won't change the other images too.
EDIT
The text size on the back of the flip card comes from .intro p on line 190 of msi_style.css
Check on to the firebug where exactly your css rules collapsing and try to make your this rule more specific using element and id combination...
Or for time being you can fix it by using !important at the end of your new rules but it isn't the best solution....
i have seen several websites which does this including weheartit.com,tumblr flipkart .
when we place cursor on images it shows several additional links like comment,share,like etc however when that image is clicked it takes to some other links.
here are few links which i am interested if anyone can guide for this type of css formatting it will be a great help.
place ur mouse on any of the offers like electronic offers etc you can see share image will come over images
http://www.flipkart.com/offers?otracker=hp_widget_banner_0_image
go to any image you will see nice css effects and details will appear once the cursor goes above images here
http://weheartit.com/?page=1
please give sample example with one image atleast
You may check this out. The concept is called mouse over/hover effects, You can search on Google and find many similiar examples.
Check the following example from css-tricks:
Slide-in Captions
You should find the code within the example sites you provided in your description. For the site http://www.flipkart.com/offers?otracker=hp_widget_banner_0_image , the name of the div that contains the share contents is sharebox.
The CSS file that contains the styling and CSS effects for sharebox is the following:
http://img6a.flixcart.com/www/prod/lego-da812168-nogz.css
Search that for sharebox and try to figure out how they do it.