Cascading Style Sheets is the best way to build the Website more attractive. CSS has lots of tricks. Different type of tricks using knowledge and good CSS design always holds the client to spend his/her precious time to the website. I was started to build the website as a PSD slicing, then I learned lots of HTML tags and new CSS tricks. In the same time, I made many attractive websites with the help of CSS2 and CSS3. So, that’s why I want to share a few CSS tricks with CSS hack rules which I think every web developer needs to know.
Top 10 CSS Hacks:
The webpage contains a small snippet of HTML/CSS that can crash iOS devices — as well as Macs and other devices — if opened in a web browser. Safari on Mac may also attempt to.
1. Any Section Shows in the Center of the Screen with Position Absolute CSS
- And then load it into Safari via the preferences. To reload any changes to the CSS while Safari is open, you need to select None Selected and then re-select your custom file. You’ll probably find lots of people on the web that have put lots of effort into similar CSS files.
- The Grid system is, can I say inconsistent? In Mac Safari. I tested on rMBP and MBA This is the same case with Bootstrap 2.x as well. I am not sure if there's a Safar-Specific fix for it, as it would appear to be a Safari Problem.
- A CSS hack is a coding technique used to hide or show CSS markup depending on the browser, version number, or capabilities.Browsers have different interpretations of CSS behavior and different levels of support for the W3C standards.CSS hacks are sometimes used to achieve consistent layout appearance in multiple browsers that do not have compatible rendering.
- CSS, Safari: Target only Safari browser. GitHub Gist: instantly share code, notes, and snippets.
- CSS3 Media Query to target only Internet Explorer (from IE6 to IE11+), Firefox, Chrome, Safari and/or Edge A set of useful CSS3 media queries to target only specific versions of the various browsers: Internet Explorer, Mozilla Firefox, Google Chrome, Apple Safari and Microsoft Edge.
Css Target Mobile Safari
If we need any section display in the center of the screen for any resolution, then we can follow this trick. It’s very easy to implement on the website.
2. Vertical Height
Sometimes we need 90% or 60% height for the entire screen. That time you can manage this with vh (view height) CSS trick as I mentioned below.
3. CSS Columns
When we create any column-based layouts then we usually use JavaScript, which is very complicated and takes time. But, now there is a way around this by using the CSS columns rule:
HTML
CSS
4. First letter caps
We know drop caps content grabs our attention first because it looks very nice. It feels like a traditional book-style and we all hope to put this style in the content block.
Now CSS gives us the opportunity. Please check the below example.
5. Gradient Text and Background
Gradient color looks very attractive. Previously we were used gradient image. But now CSS have new tricks for gradient CSS. Here is an example.
Text gradient
Background Gradient
6. Cross-Browser Change the Text Selection Color
When we select any portion of text in the browser, then it shows stander color blue. But CSS has the trick to change this color in a different browser.
7. Browser CSS Hacks
Every browser has default spacing, gap, sizing etc. and when we create any pixel perfect design for all browser supported, then sometimes we need those ticks which are very useful for building a perfect website design. Also, sometimes we need a different type of style for a different browser, then we can follow this CSS hacking rules. It’s very helpful for any browser related issue.
/;} /* IE9, IE10 */@media screen and (min-width:0) {.textColor { color: red}}
8. Mobile Browser Input Field Design Issue in iPhone
When you open any website in iPhone browser then you can follow every input adding rounded corners and drop shadows effects. Sometimes we don’t need this style. Well, it’s a very simple fix. Just add this to any input fields or buttons you don’t want to restyle.
9. Important
Sometimes we follow few inline CSS written in the HTML file and We can’t hack those style properties with the external CSS file, because inline CSS override your external CSS. But don’t worry, CSS gives us the opportunity to override this.
10. Responsive
In present day every client’s needs responsive design because they want all device compatible website and now it’s possible from media query. Here is the example below.
Now, you can easily connect your line of business applications to automate the business process!
You may also like:
Ecommerce 10 Years Challenge – Witnessing Technological Disruptions
13 Tips For Writing Amazing Ecommerce Product Descriptions To Drive Sales
Custom Theme Vs Pre-Built Theme: Developing Ecommerce Website
Safari User Guide
You can change the layout of Safari bars, buttons, and bookmarks to suit your browsing style.
Css Hack For Safari On Mac Download
Use the Favorites bar
In the Safari app on your Mac, choose View > Show Favorites Bar.
Show the status bar
In the Safari app on your Mac, choose View > Show Status Bar. When you hold the pointer over a link, the status bar at the bottom of the Safari window shows the link’s full address.
Css Hack For Safari On Mac Free
Customize the toolbar
In the Safari app on your Mac, do any of the following:
Css Hack For Safari Mac Only
Change the items in the toolbar: Choose View > Customize Toolbar, then add, remove, and rearrange toolbar items by dragging them. For example, you can add an iCloud Tabs button that shows a list of webpages open on your other devices that have Safari turned on in iCloud preferences.
Quickly rearrange toolbar buttons: Press and hold the Command key, then drag buttons right or left. This shortcut doesn’t work for the Back/Forward, Sidebar, Top Sites, Home, History, or Downloads buttons, or the Smart Search field.
Resize the toolbar: If you see angle brackets at the right end of the toolbar, it means the window is too small to show all of the toolbar items. Enlarge the window or click the brackets to see the rest of the items.
Remove a toolbar item: Press and hold the Command key, then drag the item out of the toolbar.
Show or hide the toolbar in full-screen view: While in full-screen view, choose View > Always Show Toolbar in Full Screen.
To customize Safari even more, choose Safari > Preferences, then change options.