Pinegrow Community Support Forum

Show the grid and container borders


#1

Sometimes it is helpful, to see the grid from the page and the borders for the containers (may be with a dotted line).
Especially if you want to check if the containers has provided with the correct class.
This should be turned on/off.
And it is nice to have, not mandatory


#2

I’m not sure I understand what you mean here but how about this as a workaround.
Either create a new style called div and add it to style.css then add something like this to border

border: 1px solid green;

This will apply a green border to every div on the page helping to define the edges of them in Page View. Then to “switch them off” just comment out the line of code

/* border: 1px dotted green; */

Not perfect but it might be of help!


#3

Thanks for yor help, but unfortunately that is not what I mean.
Do you know this bookmarklet:
http://alefeuvre.github.io/foundation-grid-displayer/
It shows the grid for frameworks in the browser. Works well.


What is your work flow to go from design mockup to full website?
#4

You can outline everything on the page for easier visualization with the following.

*{outline:#00BFFF dashed 1px;outline-offset:-2px;box-sizing:border-box}

You can also break everything into its own color group based upon what it is (divs, spans, containers, sections, imgs, etc.), but honestly that gets confusing visually, so I settled on the above for a clean simple visualization.

I would assume the Pinegrow developers could add this or similar as an overlay toggle feature into the app, much like the hover effect as you move your mouse over things on the page. It may help people better visualize what is occurring on the page as they develop.

Simulating the actual underlying grid of the framework being used may be tricker however … Hmmm?

But hopefully the above will help you or someone. :wink:


#5

Just drop these 2 lines in your html code:

<script src="http://alefeuvre.github.com/foundation-grid-displayer/gd-bookmarklet.min.js"></script>
<link href="http://alefeuvre.github.com/foundation-grid-displayer/stylesheets/gd-bookmarklet.min.css" rel="stylesheet">

A transparent "layer" of grid viewing, to help design
#6

Nice one @BATLABOR that seems to do the trick


#7

@BATLABOR I’ve added a short write up over here in response to @josedacosta’s grid overlay request in the feature-request category based on your suggestion.


#8

@Pinegrow_User hope you don’t mind that I borrowed your outline snippet for this feature:


#9

I don’t mind at all @matjaz, nothing special or proprietary there (ha, ha). Hopefully it will better assist with easier visualization in the app for some users.

Even more so I hope some of my other ideas/thoughts are/were given consideration for possible features. Although they may be a little more involved than that one line of CSS. But here is to hoping some might make it in. :wink:

Thanks again @matjaz, keep up the good work.

:evergreen_tree::heart:

PS: Benjamin’s english is really good, was impressed.


#10

Hi @matjaz & @earnoud

Similar to the outline overlay snippet, some might find general overlay grids beneficial to toggle on and off.

To use for assisting with the visualization of layout and design concerning alignments, positioning, etc., when dealing with CSS properties. Especially now with the new CSS improvements across the app and in conjunction with using the new Visual CSS Editor.

A few basic grids using simple gradients:

/* Line Grid */
.grid-lines {
    background-size: 10px 10px; /* Size could be definable via the UI ? */
	background-image: linear-gradient(to right, #00BFFF 1px, transparent 1px), linear-gradient(to bottom, #00BFFF 1px, transparent 1px);
}
/* Dot Grid */
.grid-dots {
	background-size: 20px 20px; /* Size could be definable via the UI ? */
	background-image: radial-gradient(circle, #00BFFF 1px, rgba(0, 0, 0, 0) 1px);
}
/*
Or for performance rendering concerns base64 PNG or Canvas could be considered alternatively.
*/

Just a thought, as another potential basic thing that may at times prove beneficial to Pinegrow users.


CSS-Grid implementation
#11

Hello again @matjaz & @earnoud

https://pinegrow.com/blog/interview-tuukka-rantala-graphic-designer-at-porkka-kuutsa-finland/

What features are currently lacking in Pinegrow right now and for which you use other applications (and which applications?)

The most important feature lacking is possibility to use guides and grids (like in Illustrator, Indesign or Photoshop). Sometimes I have used a sheet of white paper as a guide to check that some elements are even on screen.

[….]

The above excerpt from the newly posted article/interview reminded me of my previous post above suggesting to have a simple toggle " grid " overlay/underlay.

Also in regards to draggable etc., " guides " (rulers) there are existing things which may help implementing that if desired also, a few examples are seen below.

Both grids / guides would be better than a user holding a sheet of paper up to the screen as mentioned. :wink:

:evergreen_tree: :heart:

PS: Their later comment about including other CMS’s reminded me of the discussion of the many Flat File CMS solutions which exist. Most could be implemented with little work for allowing drag and drop much like the newly capable Wordpress Smart Actions, for generating editible regions, etc., for any chosen CMS’s.


Making websites is easy by Matjaz - where does flat-file cms fit in?
#12

@Pinegrow_User do the current features not cover the grid overlay/underlay requirements.

For example Bootstrap grid + image overlay are possible:

38


#13

Hey @Rob, welcome back been a while, long time no see.

The suggestion above was more for a generalized basic grid overlay not specific to any framework or workflow, much like the Element Outlines. If you try the CSS snippets I posted above it should become apparent. In addition to such a basic “grid” overlay I also referenced the “guides” since each were mentioned in the above linked interview article with the person speaking of each as seen across Adobe products and other design apps.


#14

@Pinegrow_User I should have checked out the links before opening my mouth :slight_smile:
They’ve some interesting ideas going on there. Nice share.